advice
锁屏下无法使用,建议加入
我这边锁屏可以用啊 可能是我平时都休眠,你说的锁屏是开机未运行?
刚刚拿出来试了一下
1.win+L锁定或者系统长时间自行锁定 并且有设置唤醒需要密码的情况下,无法关机。
如果在桌面关机的倒计时弹窗出现然后锁定电脑也不会关机。

2.重启后,未登录账号时,软件不能自动运行,有时间不小心误唤醒了没法关。 我用win自带的计划任务保证开机未登录时就自动运行,但可能和1的原因一样,无法关机。
总结就是有密码锁定情况下无法关机,无密码的锁定就可以。
锁屏这个我这边无法复现,可能是管理员权限的问题? 登录前很多代码没有权限运行,添加 Windows 服务了
现在这个版本登录前关机是没有问题了 锁定你那边还是不行的话,只能重写让服务端常驻了(实在是不想这么搞,单文件绿化 YYDY,真心不太愿意搞 Windows Service)
有关调用实时(JIT)调试而不是此对话框的详细信息, 请参见此消息的结尾。
************** 异常文本 ************** System.InvalidOperationException: 无法打开计算机“.”上的 udp_turn_off_Service 服务。 ---> System.ComponentModel.Win32Exception: 拒绝访问。 --- 内部异常堆栈跟踪的结尾 --- 在 System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess) 在 System.ServiceProcess.ServiceController.Stop() 在 udp_turn_off.Form1.ServiceStop(String serviceName) 在 udp_turn_off.Form1.Form1_Load(Object sender, EventArgs e) 在 System.Windows.Forms.Form.OnLoad(EventArgs e) 在 System.Windows.Forms.Form.OnCreateControl() 在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 在 System.Windows.Forms.Control.CreateControl() 在 System.Windows.Forms.Control.WmShowWindow(Message& m) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.Form.WmShowWindow(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 ************** mscorlib 程序集版本:4.0.0.0 Win32 版本:4.8.4515.0 built by: NET48REL1LAST_C 基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
udp_turn_off 程序集版本:2.0.3.0 Win32 版本:2.0.3.0 基本代码:file:///C:/Users/11111/Desktop/udp_turn_off.exe
System 程序集版本:4.0.0.0 Win32 版本:4.8.4536.0 built by: NET48REL1LAST_C 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms 程序集版本:4.0.0.0 Win32 版本:4.8.4550.0 built by: NET48REL1LAST_C 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing 程序集版本:4.0.0.0 Win32 版本:4.8.4390.0 built by: NET48REL1LAST_C 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration 程序集版本:4.0.0.0 Win32 版本:4.8.4190.0 built by: NET48REL1LAST_B 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Core 程序集版本:4.0.0.0 Win32 版本:4.8.4536.0 built by: NET48REL1LAST_C 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Xml 程序集版本:4.0.0.0 Win32 版本:4.8.4084.0 built by: NET48REL1 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.ServiceProcess 程序集版本:4.0.0.0 Win32 版本:4.8.4084.0 built by: NET48REL1 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
System.ServiceProcess.resources 程序集版本:4.0.0.0 Win32 版本:4.8.4084.0 built by: NET48REL1 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess.resources/v4.0_4.0.0.0_zh-Hans_b03f5f7f11d50a3a/System.ServiceProcess.resources.dll
System.Windows.Forms.resources 程序集版本:4.0.0.0 Win32 版本:4.8.4084.0 built by: NET48REL1 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
mscorlib.resources 程序集版本:4.0.0.0 Win32 版本:4.8.4084.0 built by: NET48REL1 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
************** JIT 调试 ************** 要启用实时(JIT)调试, 该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置 jitDebugging 值。 编译应用程序时还必须启用 调试。
例如:
启用 JIT 调试后,任何未经处理的异常 都将被发送到在此计算机上注册的 JIT 调试程序, 而不是由此对话框处理。