InitiateShutdownA method

int InitiateShutdownA(
  1. Pointer<Int8> lpMachineName,
  2. Pointer<Int8> lpMessage,
  3. int dwGracePeriod,
  4. int dwShutdownFlags,
  5. int dwReason,
)

Implementation

int InitiateShutdownA(
  ffi.Pointer<ffi.Int8> lpMachineName,
  ffi.Pointer<ffi.Int8> lpMessage,
  int dwGracePeriod,
  int dwShutdownFlags,
  int dwReason,
) {
  return (_InitiateShutdownA ??=
      _dylib.lookupFunction<_c_InitiateShutdownA, _dart_InitiateShutdownA>(
          'InitiateShutdownA'))(
    lpMachineName,
    lpMessage,
    dwGracePeriod,
    dwShutdownFlags,
    dwReason,
  );
}