RegCloseKey function Null safety advapi32

int RegCloseKey(
  1. int hKey
)

Closes a handle to the specified registry key.

LSTATUS RegCloseKey(
  HKEY hKey
);

Implementation

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