There are four categories of Service Control Manager functions:
1.General functions
2.SCManager object functions
3.Service object functions
4.Win32 service programs functions
The discussion of each function group is found in the following sections. functions which operate on an object are presented with a discussion of the object type first, followed by the function definitions.
There is one general function, CloseServiceHandle, which is used to close a handle of either a SCManager object or a Service object.
The Service Control Manager object handle has an opaque data type:
typedef LPVOID SC_HANDLE;