2014年2月19日

windows下WMI使用C++查询用户硬件信息

摘要: 最近需要做下用户信息统计,发现WMI真是个好东西,同时觉得COM这东西,还真不能少>_#include # pragma comment(lib, "wbemuuid.lib")struct UserInfo{ /** your spec*/};/** video card and OS */bool GetUserInfo(UserInfo& Info){ HRESULT hres; hres = CoInitialize( NULL ); if (FAILED(hres)) { return false; } hres = CoInitializeS... 阅读全文

posted @ 2014-02-19 10:58 Meta.Grfx 阅读(5368) 评论(0) 推荐(0) 编辑

导航