RegSaveKey function Null safety advapi32

int RegSaveKey(
  1. int hKey,
  2. Pointer<Utf16> lpFile,
  3. Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes
)

Saves the specified key and all of its subkeys and values to a new file, in the standard format.

LSTATUS RegSaveKeyW(
  HKEY                        hKey,
  LPCWSTR                     lpFile,
  const LPSECURITY_ATTRIBUTES lpSecurityAttributes);

Implementation

int RegSaveKey(int hKey, Pointer<Utf16> lpFile,
    Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes) {
  final _RegSaveKey = _advapi32.lookupFunction<
      Int32 Function(IntPtr hKey, Pointer<Utf16> lpFile,
          Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes),
      int Function(int hKey, Pointer<Utf16> lpFile,
          Pointer<SECURITY_ATTRIBUTES> lpSecurityAttributes)>('RegSaveKeyW');
  return _RegSaveKey(hKey, lpFile, lpSecurityAttributes);
}