SERVICE_REGISTRY_STATE_TYPE enumeration (winsvc.h)
Specifies a state type for a service registry key.
Syntax
typedef enum SERVICE_REGISTRY_STATE_TYPE {
ServiceRegistryStateParameters = 0,
ServiceRegistryStatePersistent = 1,
MaxServiceRegistryStateType = 2
} ;
Constants
ServiceRegistryStateParameters Value: 0 Immutable service state, populated by INF to the Parameters subkey. |
ServiceRegistryStatePersistent Value: 1 Mutable, persistent service state. This state is both readable and writable by the service, and is inaccessible outside of the service. This state persists across reboots and OS updates. |
MaxServiceRegistryStateType Value: 2 Reserved. Represents the maximum value of the enumeration. |
Remarks
All per-service registry state types have a lifetime that is scoped to the lifetime of the service installation. Once the service is removed by calling DeleteService the registry state is deleted too.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 2004 (10.0; Build 19041) |
Minimum supported server | Windows Server, version 2004 (10.0; Build 19041) |
Header | winsvc.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for