RegOverridePredefKey function Null safety advapi32

int RegOverridePredefKey(
  1. int hKey,
  2. int hNewHKey
)

Maps a predefined registry key to the specified registry key.

LSTATUS RegOverridePredefKey(
  HKEY hKey,
  HKEY hNewHKey);

Implementation

int RegOverridePredefKey(int hKey, int hNewHKey) {
  final _RegOverridePredefKey = _advapi32.lookupFunction<
      Int32 Function(IntPtr hKey, IntPtr hNewHKey),
      int Function(int hKey, int hNewHKey)>('RegOverridePredefKey');
  return _RegOverridePredefKey(hKey, hNewHKey);
}