RegEnumValue function Null safety advapi32

int RegEnumValue(
  1. int hKey,
  2. int dwIndex,
  3. Pointer<Utf16> lpValueName,
  4. Pointer<Uint32> lpcchValueName,
  5. Pointer<Uint32> lpReserved,
  6. Pointer<Uint32> lpType,
  7. Pointer<Uint8> lpData,
  8. Pointer<Uint32> lpcbData

Enumerates the values for the specified open registry key. The function copies one indexed value name and data block for the key each time it is called.

LSTATUS RegEnumValueW(
  HKEY    hKey,
  DWORD   dwIndex,
  LPWSTR  lpValueName,
  LPDWORD lpcchValueName,
  LPDWORD lpReserved,
  LPDWORD lpType,
  LPBYTE  lpData,
  LPDWORD lpcbData);


int RegEnumValue(
        int hKey,
        int dwIndex,
        Pointer<Utf16> lpValueName,
        Pointer<Uint32> lpcchValueName,
        Pointer<Uint32> lpReserved,
        Pointer<Uint32> lpType,
        Pointer<Uint8> lpData,
        Pointer<Uint32> lpcbData) =>
    _RegEnumValue(hKey, dwIndex, lpValueName, lpcchValueName, lpReserved,
        lpType, lpData, lpcbData);