InitiateSystemShutdownA method

int InitiateSystemShutdownA(
  1. Pointer<Int8> lpMachineName,
  2. Pointer<Int8> lpMessage,
  3. int dwTimeout,
  4. int bForceAppsClosed,
  5. int bRebootAfterShutdown,
)

Implementation

int InitiateSystemShutdownA(
  ffi.Pointer<ffi.Int8> lpMachineName,
  ffi.Pointer<ffi.Int8> lpMessage,
  int dwTimeout,
  int bForceAppsClosed,
  int bRebootAfterShutdown,
) {
  return (_InitiateSystemShutdownA ??= _dylib.lookupFunction<
      _c_InitiateSystemShutdownA,
      _dart_InitiateSystemShutdownA>('InitiateSystemShutdownA'))(
    lpMachineName,
    lpMessage,
    dwTimeout,
    bForceAppsClosed,
    bRebootAfterShutdown,
  );
}