SERVICE_DIRECTORY_TYPE enumeration (winsvc.h)

Specifies the type of a per-service state directory.

Syntax

typedef enum SERVICE_DIRECTORY_TYPE {
  ServiceDirectoryPersistentState,
  ServiceDirectoryTypeMax
} ;

Constants

 
ServiceDirectoryPersistentState
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 and OS updates.
ServiceDirectoryTypeMax
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

   
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