![]() IEnumWbemClassObject* pEnumerator = NULL RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE) Hres = CoSetProxyBlanket(pSvc, RPC_C_AUTHN_WINNT, RPC_C_AUTHZ_NONE, NULL, RPC_C_AUTHN_LEVEL_CALL, Hres = CoCreateInstance( CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID *) &pLoc) RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL) Hres = CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT, Hres = CoInitializeEx(0, COINIT_MULTITHREADED) Could anyone here help me reslove this problem only using c++. I am using msdn WMI sample code to get the list of devices that show up in the device manager with yellow exclamation mark but its only returning a list of all properly
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |