RegQueryValueEx function advapi32
Retrieves the type and data for the specified value name associated with an open registry key. To ensure that any string values (REG_SZ, REG_MULTI_SZ, and REG_EXPAND_SZ) returned are null-terminated, use the RegGetValue function.
LSTATUS RegQueryValueExW(
HKEY hKey,
LPCWSTR lpValueName,
LPDWORD lpReserved,
LPDWORD lpType,
LPBYTE lpData,
LPDWORD lpcbData
);
Implementation
int RegQueryValueEx(
int hKey,
Pointer<Utf16> lpValueName,
Pointer<Uint32> lpReserved,
Pointer<Uint32> lpType,
Pointer<Uint8> lpData,
Pointer<Uint32> lpcbData) =>
_RegQueryValueEx(hKey, lpValueName, lpReserved, lpType, lpData, lpcbData);