Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Система";
Текущий архив: 2003.10.23;
Скачать: [xml.tar.bz2];

Вниз

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

 
Delf   (2003-08-08 11:47) [0]

Как програмно выключить/включить монитор в W2k

SendMessage(Application.Handle,WM_SYSCOMMAND,SC_MONITORPOWER,0); Не помагает (и в хелпе по API сказано что SC_MONITORPOWER только для Win95)


 
Yanis   (2003-08-08 12:05) [1]


SendMessage(Form1.Handle,WM_SYSCOMMAND,SC_MONITORPOWER,1);


 
Delf   (2003-08-08 16:49) [2]

Спасибо
> Yanis © (08.08.03 12:05)


Вот это я стормозил так стормозил


 
liquidstorm_hss   (2003-08-09 07:57) [3]

нужно в мсдн поискать

Managing Power Schemes
Power schemes are uniquely identified by an index number. To enumerate all available power schemes, use the EnumPwrSchemes function.

The power scheme that is currently in use is called the active power scheme. To retrieve the index of the active power scheme, call the GetActivePwrScheme function. To retrieve the current power policy settings, call the GetCurrentPowerPolicies function. To change the active power scheme, call the SetActivePwrScheme function.

To create a new power scheme, call the WritePwrScheme function, specifying an index number that is not currently in use. Note that creating a new power scheme does not automatically update the active power scheme. You must always call SetActivePwrScheme to update the active power scheme.

To update an existing power scheme, call the WritePwrScheme, WriteGlobalPwrPolicy, or WriteProcessorPwrScheme function. Note that changes to the active power scheme do not automatically take effect. You must always call SetActivePwrScheme to update the active power scheme.

To retrieve additional information about the system power state, call the CallNtPowerInformation function.

To delete a power scheme, call the DeletePwrScheme function.

Platform SDK Release: November 2001 What did you think of this topic?
Let us know. Order a Platform SDK CD Online
(U.S/Canada) (International)


 
liquidstorm_hss   (2003-08-09 07:58) [4]

и еще оттуда

The following functions are used with power management.

Function Description
CallNtPowerInformation Sets or retrieves power information.
CanUserWritePwrScheme Determines whether the current user has sufficient privilege to write a power scheme
DeletePwrScheme Deletes the specified power scheme.
EnumPwrSchemes Enumerates all power schemes.
GetActivePwrScheme Retrieves the index of the active power scheme.
GetCurrentPowerPolicies Retrieves the current system power policy settings.
GetDevicePowerState Retrieves the current power state of the specified device.
GetPwrCapabilities Retrieves information about the system power capabilities.
GetPwrDiskSpindownRange Retrieves the disk spindown range.
GetSystemPowerStatus Retrieves the power status of the system.
IsPwrHibernateAllowed Determines whether the computer supports hibernation.
IsPwrShutdownAllowed Determines whether the computer supports the soft off power state.
IsPwrSuspendAllowed Determines whether the computer supports the sleep states.
IsSystemResumeAutomatic Indicates the current state of the computer.
ReadGlobalPwrPolicy Retrieves the current global power policy settings.
ReadProcessorPwrScheme Retrieves the processor power policy settings for the specified power scheme.
ReadPwrScheme Retrieves the power policy settings that are unique to the specified power scheme.
RequestWakeupLatency Specifies roughly how quickly the computer should enter the working state.
SetActivePwrScheme Sets the active power scheme.
SetSuspendState Sets the system suspend state.
SetSystemPowerState Suspends the system by shutting power down.
SetThreadExecutionState Enables applications to inform the system that it is in use.
WriteGlobalPwrPolicy Writes global power policy settings.
WriteProcessorPwrScheme Writes processor power policy settings for the specified power scheme.
WritePwrScheme Writes policy settings that are unique to the power scheme.


 
Yanis   (2003-08-11 11:16) [5]

To liquidstorm_hss (09.08.03 07:57)&liquidstorm_hss (09.08.03 07:58)
А смысл?


 
Yanis   (2003-08-11 11:17) [6]

To Delf © (08.08.03 16:49)
Да ладно, с кем не бывает. А точнее - бывает и не такое.



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

Форум: "Система";
Текущий архив: 2003.10.23;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.46 MB
Время: 0.009 c
3-74034
Little_user
2003-10-03 09:46
2003.10.23
D5 ADO Dbf


1-74268
BlackTiger
2003-10-13 16:35
2003.10.23
Кто встречал


14-74395
malkolinge
2003-10-06 12:09
2003.10.23
Долой C#


1-74166
senya
2003-10-10 12:46
2003.10.23
Развернуть/свернуть TreeView


14-74373
The
2003-10-06 16:38
2003.10.23
IntelliMouse





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский