RegSetValue function Null safety advapi32

int RegSetValue(
  1. int hKey,
  2. Pointer<Utf16> lpSubKey,
  3. int dwType,
  4. Pointer<Utf16> lpData,
  5. int cbData

Sets the data for the default or unnamed value of a specified registry key. The data must be a text string.

  HKEY    hKey,
  LPCWSTR lpSubKey,
  DWORD   dwType,
  LPCWSTR lpData,
  DWORD   cbData);


int RegSetValue(int hKey, Pointer<Utf16> lpSubKey, int dwType,
        Pointer<Utf16> lpData, int cbData) =>
    _RegSetValue(hKey, lpSubKey, dwType, lpData, cbData);