SERVICE_STATUS (Structures)
Last changed: -80.11.84.239

.
Summary
The SERVICE_STATUS structure contains information about a service. The ControlService, EnumDependentServices, EnumServicesStatus, and QueryServiceStatus functions use this structure to return information about a service. A service uses this structure in the SetServiceStatus function to report its current status to the service control manager.

C# Definition:

[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SERVICE_STATUS
{
     public static readonly int SizeOf = Marshal.SizeOf(typeof(SERVICE_STATUS));
     public SERVICE_TYPES dwServiceType;
     public SERVICE_STATE dwCurrentState;  
     public uint dwControlsAccepted;  
     public uint dwWin32ExitCode;  
     public uint dwServiceSpecificExitCode;  
     public uint dwCheckPoint;  
     public uint dwWaitHint;
}

VB .NET Definition:

Private Structure SERVICE_STATUS
    Dim dwServiceType As Int32
    Dim dwCurrentState As Int32
    Dim dwControlsAccepted As Int32
    Dim dwWin32ExitCode As Int32
    Dim dwServiceSpecificExitCode As Int32
    Dim dwCheckPoint As Int32
    Dim dwWaitHint As Int32
End Structure

User-Defined Field Types:

None.

Notes:

see EnumServicesStatus and EnumDependentServices.

Documentation