Lines Matching +full:- +full:replace
10 * See the COPYING file in the top-level directory.
15 #include "vss-common.h"
16 #include "vss-debug.h"
52 int len = nul ? nul - text : -1; in errmsg()
97 return pObj->put_Value(_bstr_t(name), _variant_t(val)); in put_Value()
114 IID_IWbemLocator, (LPVOID *)pLoc.replace())); in GetAdminName()
115 chk(pLoc->ConnectServer(_bstr_t(L"ROOT\\CIMV2"), NULL, NULL, NULL, in GetAdminName()
116 0, 0, 0, pSvc.replace())); in GetAdminName()
120 chk(pSvc->ExecQuery(_bstr_t(L"WQL"), in GetAdminName()
122 "SID='S-1-5-32-544' and localAccount=TRUE"), in GetAdminName()
124 NULL, pEnum.replace())); in GetAdminName()
130 chk(pEnum->Next(WBEM_INFINITE, 1, pWobj.replace(), &returned)); in GetAdminName()
137 chk(pWobj->Get(_bstr_t(L"Name"), 0, &var, 0, 0)); in GetAdminName()
196 IID_IUnknown, (void **)pUnknown.replace())); in QGAProviderFind()
197 chk(pUnknown->QueryInterface(IID_ICOMAdminCatalog2, in QGAProviderFind()
198 (void **)pCatalog.replace())); in QGAProviderFind()
199 chk(pCatalog->GetCollection(_bstr_t(L"Applications"), in QGAProviderFind()
200 (IDispatch **)pColl.replace())); in QGAProviderFind()
201 chk(pColl->Populate()); in QGAProviderFind()
203 chk(pColl->get_Count(&n)); in QGAProviderFind()
204 for (i = n - 1; i >= 0; i--) { in QGAProviderFind()
205 chk(pColl->get_Item(i, (IDispatch **)pObj.replace())); in QGAProviderFind()
206 chk(pObj->get_Value(_bstr_t(L"Name"), &var)); in QGAProviderFind()
213 chk(pColl->SaveChanges(&n)); in QGAProviderFind()
238 chk(coll->Remove(i)); in QGAProviderRemove()
279 const wchar_t *administratorsGroupSID = L"S-1-5-32-544"; in COMRegister()
280 const wchar_t *systemUserSID = L"S-1-5-18"; in COMRegister()
300 IID_IUnknown, (void **)pUnknown.replace())); in COMRegister()
301 chk(pUnknown->QueryInterface(IID_ICOMAdminCatalog2, in COMRegister()
302 (void **)pCatalog.replace())); in COMRegister()
306 chk(pCatalog->GetCollection(_bstr_t(L"Applications"), in COMRegister()
307 (IDispatch **)pApps.replace())); in COMRegister()
308 chk(pApps->Populate()); in COMRegister()
309 chk(pApps->Add((IDispatch **)&pObj)); in COMRegister()
316 chk(pApps->SaveChanges(&n)); in COMRegister()
321 chk(pObj->get_Key(&key)); in COMRegister()
335 strcpy(tlbPath+n-3, "tlb"); in COMRegister()
344 chk(pCatalog->CreateServiceForApplication( in COMRegister()
348 chk(pCatalog->InstallComponent(_bstr_t(QGA_PROVIDER_LNAME), in COMRegister()
355 chk(pApps->GetCollection(_bstr_t(L"Roles"), key, in COMRegister()
356 (IDispatch **)pRoles.replace())); in COMRegister()
357 chk(pRoles->Populate()); in COMRegister()
358 chk(pRoles->Add((IDispatch **)pObj.replace())); in COMRegister()
361 chk(pRoles->SaveChanges(&n)); in COMRegister()
362 chk(pObj->get_Key(&key)); in COMRegister()
366 chk(pRoles->GetCollection(_bstr_t(L"UsersInRole"), key, in COMRegister()
367 (IDispatch **)pUsersInRole.replace())); in COMRegister()
368 chk(pUsersInRole->Populate()); in COMRegister()
370 chk(pUsersInRole->Add((IDispatch **)pObj.replace())); in COMRegister()
376 chk(pUsersInRole->Add((IDispatch **)pObj.replace())); in COMRegister()
378 chk(pUsersInRole->SaveChanges(&n)); in COMRegister()
489 IID_IVssAdmin, (void **)pVssAdmin.replace()); in DllRegisterServer()
495 hr = pVssAdmin->RegisterProvider(g_gProviderId, CLSID_QGAVSSProvider, in DllRegisterServer()
502 hr = pVssAdmin->RegisterProvider(g_gProviderId, CLSID_QGAVSSProvider, in DllRegisterServer()
535 (void **)pVssAdmin.replace()); in DllUnregisterServer()
537 hr = pVssAdmin->UnregisterProvider(g_gProviderId); in DllUnregisterServer()
562 if (mbstowcs(bstr, ascii, len) == (size_t)-1) { in ConvertStringToBSTR()