# Enumerations

The four user-facing enumerations the **WinServicesLib** package exposes. All four come from the public `ServicesConstantsPublic` module in the package source; the larger set of internal `SERVICE_*` constants the source uses to call into `advapi32.dll` lives in a `Private Module` and is not part of the public API.

| Enumeration | Used by |
|-------------|---------|
| [ServiceTypeConstants](/tB/Packages/WinServicesLib/Enumerations/ServiceTypeConstants.md) | [**ServiceManager.Type**](/tB/Packages/WinServicesLib/ServiceManager.md#type), [**ServiceState.Type**](/tB/Packages/WinServicesLib/ServiceState.md#type) |
| [ServiceStartConstants](/tB/Packages/WinServicesLib/Enumerations/ServiceStartConstants.md) | [**ServiceManager.InstallStartMode**](/tB/Packages/WinServicesLib/ServiceManager.md#installstartmode) |
| [ServiceControlCodeConstants](/tB/Packages/WinServicesLib/Enumerations/ServiceControlCodeConstants.md) | [**Services.ControlService**](/tB/Packages/WinServicesLib/Services.md#controlservice), the *dwControl* parameter of [**ITbService.ChangeState**](/tB/Packages/WinServicesLib/ITbService.md#changestate) |
| [ServiceStatusConstants](/tB/Packages/WinServicesLib/Enumerations/ServiceStatusConstants.md) | [**ServiceManager.ReportStatus**](/tB/Packages/WinServicesLib/ServiceManager.md#reportstatus) |

The member-name prefixes are inherited from the underlying Win32 SDK constants --- `tb…` on the *configuration* enums ([**ServiceTypeConstants**](/tB/Packages/WinServicesLib/Enumerations/ServiceTypeConstants.md), [**ServiceStartConstants**](/tB/Packages/WinServicesLib/Enumerations/ServiceStartConstants.md)) and `vb…` on the *runtime* enums ([**ServiceControlCodeConstants**](/tB/Packages/WinServicesLib/Enumerations/ServiceControlCodeConstants.md), [**ServiceStatusConstants**](/tB/Packages/WinServicesLib/Enumerations/ServiceStatusConstants.md)). The split is not deliberate; treat the prefixes as part of the member names and ignore the asymmetry.
