ByVal hServiceStatus As Integer,
ByRef lpServiceStatus As SERVICE_STATUS)
As Integer
User-Defined Field Types:
None.
Notes:
None.
This API allows you top set the status on a Windows Service. This is especially helpful in .NET in the various events you override from the ServiceBase class. For example, in the OnStart event, here is a recommendatation (see below for a custom enumeration with the SERVICE_START_PENDING and other states):