如何通过Rs232安全关机 [英] How Can I Make Safe Shutdown Via Rs232

查看:321
本文介绍了如何通过Rs232安全关机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


i连接到微控制器板的按钮,通过rs232连接到pc我希望当这个按钮释放时,pc将通过cmd命令关闭任何帮助安全关闭请



非常感谢

hi
i connect button to the microcontroller board which is connected to pc via rs232 i want when this button release the pc will safe shuttdow through cmd command shutdown any help please

many thanks

推荐答案

一旦微控制器检测到按下按钮,它就会发送一个关闭消息给您的应用程序在PC上运行。反过来,该应用程序可以关闭Windows调用 InitiateSystemShutdownEx [ ^ ](请参阅备注部分)
Once the microcontroller detects the button press, it can send a 'shutdown' message to the your application running on the PC. The application, in turn, can shutdown Windows calling InitiateSystemShutdownEx[^] (please see the Remarks section)


这篇关于如何通过Rs232安全关机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆