Group: Service - Library: advapi32
Encapsulating access to the Windows Services in a class
How to create a service object
How to delete a service object
BOOL CloseServiceHandle(
SC_HANDLE hSCObject
); DECLARE INTEGER CloseServiceHandle IN advapi32;
INTEGER hSCObject hSCObject [in] Handle to the service control manager object or the service object to close.
If the function succeeds, the return value is nonzero.
The CloseServiceHandle function does not destroy the service control manager object referred to by the handle. A service control manager object cannot be destroyed. A service object can be destroyed by calling the DeleteService function.
Home