RegSetValueEx function advapi32

int RegSetValueEx(
  1. int hKey,
  2. Pointer<Utf16> lpValueName,
  3. int Reserved,
  4. int dwType,
  5. Pointer<Uint8> lpData,
  6. int cbData,
)

Sets the data and type of a specified value under a registry key.

LSTATUS RegSetValueExW(
  HKEY       hKey,
  LPCWSTR    lpValueName,
  DWORD      Reserved,
  DWORD      dwType,
  const BYTE *lpData,
  DWORD      cbData
);

Implementation

int RegSetValueEx(int hKey, Pointer<Utf16> lpValueName, int Reserved,
        int dwType, Pointer<Uint8> lpData, int cbData) =>
    _RegSetValueEx(hKey, lpValueName, Reserved, dwType, lpData, cbData);