Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SERVICE_STATUS (Structures)
 
.
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.

See ControlService for SERVICE_STATE definition.

See SERVICE_TYPES definition.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions