Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2010.08.27;
Скачать: CL | DM;

Вниз

выключить монитор   Найти похожие ветки 

 
SunSh@dow   (2009-04-03 11:40) [0]

Привет всем.

Как выключить монитор под Vist" ой ???

Команда

SendMessage(Handle,WM_SYSCOMMAND,SC_MONITORPOWER,1);

не работает.


 
clickmaker ©   (2009-04-03 11:54) [1]

а SendMessage(Handle,WM_SYSCOMMAND,SC_MONITORPOWER,2);?


 
SunSh@dow   (2009-04-06 08:34) [2]


> clickmaker


Спасибо за помощь, а расшифровок этих параметров нету?


 
brother ©   (2009-04-06 11:04) [3]

если с 2 работает, то может так:
const
 mpOn=1;
 mpOff=2;

?)


 
clickmaker ©   (2009-04-06 12:19) [4]

> расшифровок этих параметров нету?

MSDN

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



Страницы: 1 вся ветка

Текущий архив: 2010.08.27;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.22 c
2-1274192491
Student :)
2010-05-18 18:21
2010.08.27
HTTP component is busy


4-1217672834
DeadMeat
2008-08-02 14:27
2010.08.27
Отключение скринсейвера


2-1274194704
Delphist2
2010-05-18 18:58
2010.08.27
дата модификации файла


2-1274344276
zamtmn
2010-05-20 12:31
2010.08.27
unicode->ascii


15-1270451902
brother
2010-04-05 11:18
2010.08.27
FAT32