januwA / flutter_exit_windows_ex

Logs off the interactive user, shuts down the system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_exit_windows_ex

Logs off the interactive user, shuts down the system

Install

dependencies:
  flutter_exit_windows_ex:

Example

Shutdown:

import 'package:flutter_exit_windows_ex/flutter_exit_windows_ex.dart';
await FlutterExitWindowsEx.exitWindowsEx(EWX_SHUTDOWN);

Logoff:

import 'package:flutter_exit_windows_ex/flutter_exit_windows_ex.dart';
await FlutterExitWindowsEx.exitWindowsEx(EWX_LOGOFF);

Reboot:

import 'package:flutter_exit_windows_ex/flutter_exit_windows_ex.dart';
await FlutterExitWindowsEx.exitWindowsEx(EWX_REBOOT);

创建指令

λ flutter create -t plugin --platforms windows --org com.ajanuw --project-name flutter_exit_windows_ex ./

See also:

About

Logs off the interactive user, shuts down the system

License:MIT License


Languages

Language:C++ 58.3%Language:CMake 23.2%Language:Dart 14.4%Language:C 4.1%