InitiateSystemShutdownW method

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

Implementation

int InitiateSystemShutdownW(
  ffi.Pointer<ffi.Uint16> lpMachineName,
  ffi.Pointer<ffi.Uint16> lpMessage,
  int dwTimeout,
  int bForceAppsClosed,
  int bRebootAfterShutdown,
) {
  return (_InitiateSystemShutdownW ??= _dylib.lookupFunction<
      _c_InitiateSystemShutdownW,
      _dart_InitiateSystemShutdownW>('InitiateSystemShutdownW'))(
    lpMachineName,
    lpMessage,
    dwTimeout,
    bForceAppsClosed,
    bRebootAfterShutdown,
  );
}