VC 关闭系统相关信息

本文详细介绍了Windows系统的关闭、注销和锁屏操作。关闭系统会保存所有数据并显示可安全关机的消息框;注销则结束进程并显示登录对话框;锁屏则保护显示器免受未经授权的使用。应用可以通过ExitWindowsEx函数实现本地或远程计算机的关机和重启,而InitiateSystemShutdown函数可以启动倒计时并显示提示用户注销的对话框。
摘要由CSDN通过智能技术生成

本文章摘录自MSDN:


一、关于关闭系统: 主要有关闭系统,注销用户,和锁屏三种

System shutdown brings the system to a condition in which it is safe to turn off the computer. All file-system buffers are flushed to the disk, then a message box is displayed informing the user that the computer can be turned off. There is also a reboot option that will restart the computer, rather than display this system shutdown message box. For more information, see How to Shut Down the System.

Logging off stops all processes associated with the security context of the process that called the exit function, logs the current user off the system, and displays the logon dialog box. For more information, see How to Log Off the Current User.

Locking the workstation protects the display from unauthorized use whenever you leave your computer. To unlock the workstation, you must log in. For more information, see How to Lock the Workstation.


二、How to Shut Down the System

There are two ways for an application to shut down local or remote computers:

  • Shut down the system.
  • Shut down the system and restart it.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值