RegGetValue function advapi32
WIN32_ERROR
RegGetValue(
- HKEY hkey,
- PCWSTR? lpSubKey,
- PCWSTR? lpValue,
- REG_ROUTINE_FLAGS dwFlags,
- Pointer<
Uint32> ? pdwType, - Pointer<
NativeType> ? pvData, - Pointer<
Uint32> ? pcbData,
Retrieves the type and data for the specified registry value.
To learn more, see learn.microsoft.com/windows/win32/api/winreg/nf-winreg-reggetvaluew.
Implementation
@pragma('vm:prefer-inline')
WIN32_ERROR RegGetValue(
HKEY hkey,
PCWSTR? lpSubKey,
PCWSTR? lpValue,
REG_ROUTINE_FLAGS dwFlags,
Pointer<Uint32>? pdwType,
Pointer? pvData,
Pointer<Uint32>? pcbData,
) => WIN32_ERROR(
_RegGetValue(
hkey,
lpSubKey ?? nullptr,
lpValue ?? nullptr,
dwFlags,
pdwType ?? nullptr,
pvData ?? nullptr,
pcbData ?? nullptr,
),
);