RegQueryValueEx function advapi32

WIN32_ERROR RegQueryValueEx(
  1. HKEY hKey,
  2. PCWSTR? lpValueName,
  3. Pointer<Uint32>? lpType,
  4. Pointer<Uint8>? lpData,
  5. Pointer<Uint32>? lpcbData,
)

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,
  ),
);