[StructLayout(LayoutKind.Sequential, Pack = 0)]
public struct ENUM_SERVICE_STATUS
{
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
public string pServiceName;
[MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)]
public string pDisplayName;
public SERVICE_STATUS ServiceStatus;
}
VB Definition:
Structure ENUM_SERVICE_STATUS
Public TODO
End Structure
User-Defined Field Types:
None.
Notes:
None.
The EnumDependentServices function retrieves the name and status of each service that depends on the specified service; that is, the specified service must be running before the dependent services can run.
3/16/2007 7:31:59 AM - anfortas.geo@yahoo.com-216.204.61.86
Enumerates services in the specified service control manager database. The name and status of each service are provided, long with additional data based on the specified information level.