Enum StateFlags Path C++ Link Microsoft.Win32.RegistryKey.StateFlags, mscorlib underlying int32 mscorlib.dll Values 4 NameValueHex Dirty10x01SystemKey20x02WriteAccess40x04PerfData80x08 Used by 1types with a member, parameter or interface of this type RegistryKey // Microsoft.Win32.RegistryKey.StateFlags, mscorlib enum class StateFlags : int32 { Dirty = 1, SystemKey = 2, WriteAccess = 4, PerfData = 8, };