mEjY的自由世界

眼界决定世界

[导入]wmi监视系统动作 摘自msdn

The following code is an example of receiving event notifications through WMI: #include "eventsink.h"int main(int iArgCnt, char ** argv){ HRESULT hres; // Step 1: -------------------------------------------------- // Initialize COM. ------------------------------------------ hres = CoInitializeEx(0, COINIT_MULTITHREADED); if (FAILED(hres)) { cout << "Failed to initialize COM library. Error code = 0x" << hex << hres
文章来源:http://blog.csdn.net/mejy/archive/2008/01/17/2049064.aspx

posted on 2008-01-24 11:25 mEjY 阅读(183) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航:   博客园   博客园最新博文   博问   管理


<2026年8月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿(1)

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜