Changeset 27129 in vbox for trunk/src/VBox/Runtime/r3/win/RTSystemQueryDmiString-win.cpp
- Timestamp:
- Mar 6, 2010 12:16:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/RTSystemQueryDmiString-win.cpp
r26645 r27129 50 50 if (SUCCEEDED(hr)) 51 51 { 52 hr = CoInitializeSecurity(NULL, 52 hr = CoInitializeSecurity(NULL, 53 53 -1, /* COM authentication. */ 54 54 NULL, /* Which authentication services. */ 55 55 NULL, /* Reserved. */ 56 RPC_C_AUTHN_LEVEL_DEFAULT, /* Default authentication. */ 56 RPC_C_AUTHN_LEVEL_DEFAULT, /* Default authentication. */ 57 57 RPC_C_IMP_LEVEL_IMPERSONATE, /* Default impersonation. */ 58 58 NULL, /* Authentication info. */ … … 76 76 AssertPtr(ppServices); 77 77 78 HRESULT hr = pLocator->ConnectServer(_bstr_t(TEXT(pszServer)), 79 NULL, 80 NULL, 81 0, 82 NULL, 83 0, 84 0, 78 HRESULT hr = pLocator->ConnectServer(_bstr_t(TEXT(pszServer)), 79 NULL, 80 NULL, 81 0, 82 NULL, 83 0, 84 0, 85 85 ppServices); 86 86 if (SUCCEEDED(hr)) 87 87 { 88 hr = CoSetProxyBlanket(*ppServices, 89 RPC_C_AUTHN_WINNT, 90 RPC_C_AUTHZ_NONE, 91 NULL, 92 RPC_C_AUTHN_LEVEL_CALL, 88 hr = CoSetProxyBlanket(*ppServices, 89 RPC_C_AUTHN_WINNT, 90 RPC_C_AUTHZ_NONE, 91 NULL, 92 RPC_C_AUTHN_LEVEL_CALL, 93 93 RPC_C_IMP_LEVEL_IMPERSONATE, 94 NULL, 95 EOAC_NONE); 94 NULL, 95 EOAC_NONE); 96 96 } 97 97 return hr; … … 111 111 112 112 IWbemLocator *pLoc; 113 hr = CoCreateInstance(CLSID_WbemLocator, 114 0, 115 CLSCTX_INPROC_SERVER, 113 hr = CoCreateInstance(CLSID_WbemLocator, 114 0, 115 CLSCTX_INPROC_SERVER, 116 116 IID_IWbemLocator, (LPVOID *)&pLoc); 117 117 int rc = VINF_SUCCESS; … … 128 128 IWbemClassObject *pObj; 129 129 ULONG uCount; 130 130 131 131 do 132 132 { … … 134 134 1, 135 135 &pObj, 136 &uCount); 136 &uCount); 137 137 if ( SUCCEEDED(hr) 138 138 && uCount > 0) … … 148 148 rc = VERR_NOT_SUPPORTED; 149 149 } 150 150 151 151 if (RT_SUCCESS(rc)) 152 152 { … … 177 177 RT_EXPORT_SYMBOL(RTSystemQueryDmiString); 178 178 179
Note:
See TracChangeset
for help on using the changeset viewer.