Entwickler-Ecke

Windows API - WinXP: Standby-Mode...


Ryazor - Do 06.03.03 21:21
Titel: WinXP: Standby-Mode...
Tach!
Ich würde gerne wissen, ob ich auch unter XP den Standby-Modus einschalten kann? Reboot und Shutdown hab ich schon hingekriegt :D
Naja, geht's? THX!


derDoc - Do 06.03.03 21:56

Was ist für dich der Standby Modus? Das mit dem LogOff?


Ryazor - Do 06.03.03 22:15

Was is für dich logOff? :D
Ich mein mit Standby einfach den Standby-Betrieb halt, den du auch mit "Start - Beenden - Standby" ausführen kannst...


Delete - Do 06.03.03 22:28

Ich glaube (Angabe ohne Gewähr!) du suchst das hier:
PSDK hat folgendes geschrieben:

Quelltext
1:
2:
3:
4:
5:
BOOLEAN SetSuspendState(
  BOOL Hibernate,
  BOOL ForceCritical,
  BOOL DisableWakeEvent
);


Parameters

Hibernate
[in] If this parameter is TRUE, the system hibernates. If the parameter is FALSE, the system is suspended.
ForceCritical
[in] If this parameter is TRUE, the system suspends operation immediately; if it is FALSE, the system broadcasts a PBT_APMQUERYSUSPEND event to each application to request permission to suspend operation.
DisableWakeEvent
[in] If this parameter is TRUE, the system disables all wake events. If the parameter is FALSE, any system wake events remain enabled.

Ich hab´s nie ausprobiert. :oops:


toms - Fr 07.03.03 00:27

Ein Beispiel findest du hier:
http://www.swissdelphicenter.ch/de/showcode.php?id=1401
(Auch dazugehörige Kommentare lesen!)