InitiateSystemShutdownExW method
Implementation
int InitiateSystemShutdownExW(
ffi.Pointer<ffi.Uint16> lpMachineName,
ffi.Pointer<ffi.Uint16> lpMessage,
int dwTimeout,
int bForceAppsClosed,
int bRebootAfterShutdown,
int dwReason,
) {
return (_InitiateSystemShutdownExW ??= _dylib.lookupFunction<
_c_InitiateSystemShutdownExW,
_dart_InitiateSystemShutdownExW>('InitiateSystemShutdownExW'))(
lpMachineName,
lpMessage,
dwTimeout,
bForceAppsClosed,
bRebootAfterShutdown,
dwReason,
);
}