RegCreateKeyExA method

int RegCreateKeyExA(
  1. Pointer<HKEY__> hKey,
  2. Pointer<Int8> lpSubKey,
  3. int Reserved,
  4. Pointer<Int8> lpClass,
  5. int dwOptions,
  6. int samDesired,
  7. Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  8. Pointer<Pointer<HKEY__>> phkResult,
  9. Pointer<Uint64> lpdwDisposition,
)

Implementation

int RegCreateKeyExA(
  ffi.Pointer<HKEY__> hKey,
  ffi.Pointer<ffi.Int8> lpSubKey,
  int Reserved,
  ffi.Pointer<ffi.Int8> lpClass,
  int dwOptions,
  int samDesired,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  ffi.Pointer<ffi.Pointer<HKEY__>> phkResult,
  ffi.Pointer<ffi.Uint64> lpdwDisposition,
) {
  return (_RegCreateKeyExA ??=
      _dylib.lookupFunction<_c_RegCreateKeyExA, _dart_RegCreateKeyExA>(
          'RegCreateKeyExA'))(
    hKey,
    lpSubKey,
    Reserved,
    lpClass,
    dwOptions,
    samDesired,
    lpSecurityAttributes,
    phkResult,
    lpdwDisposition,
  );
}