RegQueryValueEx function advapi32
Retrieves the type and data for the specified value name associated with an open registry key.
To learn more, see learn.microsoft.com/windows/win32/api/winreg/nf-winreg-regqueryvalueexw.
Implementation
@pragma('vm:prefer-inline')
WIN32_ERROR RegQueryValueEx(
HKEY hKey,
PCWSTR? lpValueName,
Pointer<Uint32>? lpType,
Pointer<Uint8>? lpData,
Pointer<Uint32>? lpcbData,
) => WIN32_ERROR(
_RegQueryValueEx(
hKey,
lpValueName ?? nullptr,
nullptr,
lpType ?? nullptr,
lpData ?? nullptr,
lpcbData ?? nullptr,
),
);