RegFlushKey function Null safety advapi32

int RegFlushKey(
  1. int hKey
)

Writes all the attributes of the specified open registry key into the registry.

LSTATUS RegFlushKey(
  HKEY hKey);

Implementation

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