Click or drag to resize
Xcalibur Systems LLC Logo

ServiceStatusProcess Structure

Contains process status information for a service. The ControlServiceEx, EnumServicesStatusEx, NotifyServiceStatusChange, and QueryServiceStatusEx functions use this structure.

SERVICE_STATUS_PROCESS structure

Inheritance Hierarchy
SystemObject
  SystemValueType
    Xcalibur.NativeMethods.V2.ServicesServiceStatusProcess

Namespace: Xcalibur.NativeMethods.V2.Services
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
public struct ServiceStatusProcess

The ServiceStatusProcess type exposes the following members.

Methods
 NameDescription
Public methodEquals
(Inherited from ValueType)
Public methodGetHashCode
(Inherited from ValueType)
Public methodGetType
(Inherited from Object)
Public methodToString
(Inherited from ValueType)
Top
Fields
 NameDescription
Public fieldCheckPoint The check-point value that the service increments periodically to report its progress during a lengthy start, stop, pause, or continue operation. For example, the service should increment this value as it completes each step of its initialization when it is starting up. The user interface program that invoked the operation on the service uses this value to track the progress of the service during a lengthy operation. This value is not valid and should be zero when the service does not have a start, stop, pause, or continue operation pending.
Public fieldControlsAccepted The control codes the service accepts and processes in its handler function (see Handler and HandlerEx).
Public fieldCurrentState The current state of the service related to .
Public fieldProcessId The process identifier of the service.
Public fieldServiceFlags The service flags related to .
Public fieldServiceSpecificExitCode The service-specific error code that the service returns when an error occurs while the service is starting or stopping.
Public fieldServiceType The type of service related to .
Public fieldWaitHint The estimated time required for a pending start, stop, pause, or continue operation, in milliseconds. Before the specified amount of time has elapsed, the service should make its next call to the function with either an incremented value or a change in . If the amount of time specified by passes, and has not been incremented or has not changed, the service control manager or service control program can assume that an error has occurred and the service should be stopped. However, if the service shares a process with other services, the service control manager cannot terminate the service application because it would have to terminate the other services sharing the process as well.
Public fieldWin32ExitCode The error code that the service uses to report an error that occurs when it is starting or stopping.
Top
See Also