积极答复者
win7有没有直接关闭显示器的小程序?

问题
答案
-
就系统而言,没有自带的功能。个别的品牌机会设置相应的选项。
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”- 已标记为答案 Magon LiuModerator 2010年12月28日 5:59
全部回复
-
不清楚你所說的程序是否調用下面這個 API 以實現關閉顯示器的. 如果是, 那麼可能需要一些新的方法來針對 Windows Vista/7 正常關閉顯示器.
SendMessage(HWND_BROADCAST, 0x112, 0xf170, isON ? -1 : 2);
private static readonly IntPtr HWND_BROADCAST;
internal const int SC_MONITORPOWER = 0xf170;
internal const int WM_SYSCOMMAND = 0x112;
Folding@Home -
不清楚你所說的程序是否調用下面這個 API 以實現關閉顯示器的. 如果是, 那麼可能需要一些新的方法來針對 Windows Vista/7 正常關閉顯示器.
SendMessage(HWND_BROADCAST, 0x112, 0xf170, isON ? -1 : 2);
private static readonly IntPtr HWND_BROADCAST;
internal const int SC_MONITORPOWER = 0xf170;
internal const int WM_SYSCOMMAND = 0x112;
Folding@Home
不好意思,想问一下不知道你是否编译一个调用此API的看看? -
就系统而言,没有自带的功能。个别的品牌机会设置相应的选项。
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”- 已标记为答案 Magon LiuModerator 2010年12月28日 5:59