Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Ruhezustand (https://www.delphipraxis.net/3880-ruhezustand.html)

dopeline 3. Apr 2003 22:00


Ruhezustand
 
Wie kann ich windows xp per button-klick in den ruhezustand fahren?

Mirilin 3. Apr 2003 22:46

Bin mir nicht sicher, ob Dir dies weiter helfen könnte :
Delphi-Quellcode:
WM_POWERBROADCAST

toms 4. Apr 2003 07:29

Mit SetSuspendState oder SetSystemPowerState.

Siehe
http://www.datavis.ch/Thomas/Downloa...r/SysFuncs.pas

dopeline 4. Apr 2003 08:29

Zitat:

Zitat von Mirilin
WM_POWERBROADCAST

funzt bei mir nicht! gibt es da nicht ne andere möglichkeit?
Shutdown z.b. :
Delphi-Quellcode:
ExitWindowsEx(EWX_SHUTDOWN, 0);
Irgenwie sowas in der art.

Gruß, dopeline :dancer:


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz