Thema: Delphi Windows XP beenden

Einzelnen Beitrag anzeigen

Benutzerbild von emsländer
emsländer

Registriert seit: 21. Aug 2004
Ort: Lengerich
658 Beiträge
 
RAD-Studio 2009 Ent
 
#60

Re: Windows XP beenden

  Alt 28. Jan 2005, 17:23
Zitat von Luckie:
Das kann nicht sein:
Zitat:
Code:
BOOL ExitWindowsEx(
  UINT uFlags,
  DWORD dwReason
);
Zitat:
dwReason
[in] Reason for initiating the shutdown. This parameter must be one of the system shutdown reason codes.
If this parameter is zero, the SHTDN_REASON_FLAG_PLANNED reason code will not be set and therefore the default action is an undefined shutdown that is logged as "No title for this reason could be found". By default, it is also an unplanned shutdown. Depending on how the system is configured, an unplanned shutdown triggers the creation of a file that contains the system state information, which can delay shutdown. Therefore, do not use zero for this parameter.

Windows 2000, Windows NT, and Windows Me/98/95: This parameter is ignored.
Und
Zitat:
uFlags
[in] Shutdown type. This parameter must include one of the following values.
[Tabelle]
This parameter can optionally include the following values.
Ergo muss es so heißen:
ExitWindowsEx(EWX_SHUTDOWN or EWX_FORCE);
Dann ist es vielleicht irgendein Zufall - aber es klappt!

Gruss

EL


Narben am Körper sind ein Zeichen dafür, das man gelebt hat.
Narben auf der Seele sind ein Zeichen dafür, das man geliebt hat.
  Mit Zitat antworten Zitat