哪个函数可以软关闭显示器?

MondayMornings 2004-06-10 05:16:09
os:win2000server sp4
delphi 7
哪个函数可以软关闭显示器?
多谢.
...全文
62 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
MondayMornings 2004-06-10
  • 打赏
  • 举报
回复
多谢了。

SC_MONITORPOWER

Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
The lParam parameter can have the following values:

1 - the display is going to low power
2 - the display is being shut off
fim 2004-06-10
  • 打赏
  • 举报
回复
Turn off the monitor
// turn it off:

SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0);

// turn it on again:

SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, -1);

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧