// wdm.h
typedef enum _DRIVER_REGKEY_TYPE {
DriverRegKeyParameters,
DriverRegKeyPersistentState,
DriverRegKeySharedPersistentState
} DRIVER_REGKEY_TYPE, *PDRIVER_REGKEY_TYPE;
View the official Windows Driver Kit DDI referenceNo description available.
Defines values for the type of registry key to be used by a driver. This enumeration is used by the IoOpenDriverRegistryKey function.
DriverRegKeyParametersThe requested registry key is the immutable parameters key for the driver.
DriverRegKeyPersistentStateThe requested registry key is a location for mutable state to be read/written that will persist across reboots. This mutable state is specific to the internals of the driver and only accessible by the driver itself.
DriverRegKeySharedPersistentStateThe requested registry key is a location for mutable state to be read/written that will persist across reboots. This mutable state is meant to be shared between the driver and other components. Other components can access this registry key using GetSharedServiceRegistryStateKey. This value is available on Windows Server 2022 and later versions of Windows.