Searched refs:hSMgr (Results 1 - 4 of 4) sorted by relevance

/vbox/src/VBox/HostDrivers/VBoxUSB/win/Install/
H A DUSBUninstall.cpp105 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_STOP | SERVICE_QUERY_STATUS); local
107 AssertMsg(hSMgr, ("OpenSCManager(,,delete) failed rc=%d\n", LastError));
108 if (hSMgr)
110 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, SERVICE_STOP | SERVICE_QUERY_STATUS);
147 CloseServiceHandle(hSMgr);
165 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_CHANGE_CONFIG); local
167 AssertMsg(hSMgr, ("OpenSCManager(,,delete) failed rc=%d\n", LastError));
168 if (hSMgr)
170 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, DELETE);
192 CloseServiceHandle(hSMgr);
[all...]
/vbox/src/VBox/HostDrivers/Support/win/
H A DSUPLib-win.cpp354 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_STOP | SERVICE_QUERY_STATUS); local
356 AssertMsg(hSMgr, ("OpenSCManager(,,delete) failed dwErr=%d\n", dwErr));
357 if (hSMgr)
359 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, SERVICE_STOP | SERVICE_QUERY_STATUS);
404 CloseServiceHandle(hSMgr);
423 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_CHANGE_CONFIG); local
425 AssertMsg(hSMgr, ("OpenSCManager(,,delete) failed rc=%d\n", dwErr));
426 if (hSMgr)
428 SC_HANDLE hService = OpenService(hSMgr, SERVICE_NAME, DELETE);
455 CloseServiceHandle(hSMgr);
531 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_QUERY_STATUS | SERVICE_START); local
[all...]
/vbox/src/VBox/Additions/common/VBoxGuest/win/
H A DVBoxGuestInst.cpp72 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_CHANGE_CONFIG); local
73 if (!hSMgr)
78 SC_HANDLE hService = OpenService(hSMgr, VBOXGUEST_SERVICE_NAME, DELETE);
94 CloseServiceHandle(hSMgr);
/vbox/src/VBox/HostDrivers/VBoxUSB/win/testcase/
H A DUSBTest.cpp71 SC_HANDLE hSMgr = OpenSCManager(NULL, NULL, SERVICE_STOP | SERVICE_QUERY_STATUS); local
73 AssertMsg(hSMgr, ("OpenSCManager(,,delete) failed rc=%d\n", LastError));
74 if (hSMgr)
76 SC_HANDLE hService = OpenServiceW(hSMgr, USBMON_SERVICE_NAME_W, SERVICE_STOP | SERVICE_QUERY_STATUS);
113 CloseServiceHandle(hSMgr);

Completed in 53 milliseconds