Description: Gives a SendMessage example of to control the display. Concluded that the parameters of the function call should be: SendMessage (HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, cmd) which only take the following values of cmd effective: typedef enum (MONITOR_ON =-1, MONITOR_OFF = 2, MONITOR_STANBY = 1) eMonitorCMD otherwise be automatically neglected. To correct a number of incomplete or incorrect documentation. But for my notebook during the standby if the display closed, the next recovery time must be re-closed and then open the display spent above procedure, I do not know why, it is said that this is a BUG. The local system to WindowsXP, T61 thinkpad.
File list (Check if you may need any files):
Screen_App
..........\Debug
..........\.....\Screen_App.exe
..........\off.bat
..........\ReadMe.txt
..........\Release
..........\.......\Screen_App.exe
..........\Screen_App.cpp
..........\Screen_App.dsp
..........\Screen_App.dsw
..........\Screen_App.ncb
..........\Screen_App.opt
..........\Screen_App.plg
..........\StdAfx.cpp
..........\StdAfx.h