© 1999-2048 dssz.net 粤ICP备11031372号
[其它] C#调用windows api关机(关机api)示例代码分享
说明:代码如下:using System;using System.Runtime.InteropServices; class shoutdown{ [StructLayout(LayoutKind.Sequential, Pack=1)] internal struct TokPriv1Luid { public int Count; public long Luid; public int Attr; } [DllImport(“kernel32.dll”, ExactSpel<weixin_38621638> 在 上传 | 大小:41984