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 Definition:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
Public Class SERVICE_STATUS
    Public Sizeof As Int32
    Public dwServiceType As Int32
    Public dwCurrentState As Int32
    Public dwControlsAccepted As Int32
    Public dwWin32ExitCode As Int32
    Public dwServiceSpecificExitCode As Int32
    Public dwCheckPoint As Int32
    Public dwWaitHint As Int32

End Class

User-Defined Field Types:

None.

Notes:

see EnumServicesStatus and EnumDependentServices.

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