RegGetValue function advapi32

WIN32_ERROR RegGetValue(
  1. HKEY hkey,
  2. PCWSTR? lpSubKey,
  3. PCWSTR? lpValue,
  4. REG_ROUTINE_FLAGS dwFlags,
  5. Pointer<Uint32>? pdwType,
  6. Pointer<NativeType>? pvData,
  7. 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,
  ),
);