SERVICE_DIRECTORY_TYPE enumeration (winsvc.h)

Specifies the type of a per-service state directory.

Syntax

typedef enum SERVICE_DIRECTORY_TYPE {
  ServiceDirectoryPersistentState = 0,
  ServiceDirectoryTypeMax = 1
} ;

Constants

 
ServiceDirectoryPersistentState
Value: 0
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.
ServiceDirectoryTypeMax
Value: 1
Reserved. Represents the maximum value of the enumeration.

Remarks

All per-service state directory types have a lifetime that is scoped to the lifetime of the service installation. Once the service is removed by calling DeleteService the state directories are 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

GetServiceDirectory