整理出来的一个windows关机、锁定、重启、注销 API调用 .
using System.Runtime.InteropServices; namespace HookDemo { class WindowsExit { [StructLayout(LayoutKind.Sequential, Pack = 1)] private struct TokPriv1Luid {