SRRF

Flags that restrict the data to be set or returned.

Constant/value Description
SRRF_RT_REG_NONE
0x00000001
Type REG_NONE.
SRRF_RT_REG_SZ
0x00000002
Type REG_SZ. REG_EXPAND_SZ types are automatically converted to REG_SZ unless the SRRF_NOEXPAND flag is specified.
SRRF_RT_REG_EXPAND_SZ
0x00000004
Type REG_EXPAND_SZ. If retrieving a value, you must also get the SRRF_NOEXPAND flag, or SHRegGetValue fails with ERROR_INVALID_PARAMETER.
SRRF_RT_REG_BINARY
0x00000008
Type REG_BINARY.
SRRF_RT_REG_DWORD
0x00000010
Type REG_DWORD.
SRRF_RT_REG_MULTI_SZ
0x00000020
Type REG_MULTI_SZ.
SRRF_RT_REG_QWORD
0x00000040
Type REG_QWORD.
SRRF_RT_DWORD
0x00000018
REG_DWORD and 32-bit REG_BINARY types. This is equivalent to SRRF_RT_REG_BINARY | SRRF_RT_REG_DWORD. If retrieving a value, if the value's binary data is larger than 32 bits, it is not returned.
SRRF_RT_QWORD
0x00000048
REG_QWORD and 64-bit REG_BINARY types. This is equivalent to SRRF_RT_REG_BINARY | SRRF_RT_REG_QWORD. If retrieving a value, if the value's binary data is larger than 64 bits, it is not returned.
SRRF_RT_ANY
0x0000FFFF
All types. Set this flag if no other SRRF_RT value is set.
SRRF_RM_ANY
0x00000000
No mode restriction. This is the default value.
SRRF_RM_NORMAL
0x00010000
Restrict system startup mode to "normal boot".
SRRF_RM_SAFE
0x00020000
Restrict system startup mode to "safe mode".
SRRF_RM_SAFENETWORK
0x00040000
Restrict system startup mode to "safe mode with networking".
SRRF_NOEXPAND
0x10000000
Do not automatically expand REG_EXPAND_SZ environment strings.
SRRF_ZEROONFAILURE
0x20000000
If retrieving a value, if pvData is not NULL, set the contents of the pvData buffer to all zeros on failure.
SRRF_NOVIRT
0x40000000
When retrieving a value, if the requested key is virtualized, fail with ERROR_FILE_NOT_FOUND.

Remarks

These values are defined in Shlwapi.h.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Shlwapi.h

See also

SHRegSetValue

SHRegGetValue