Thema: Delphi Windows XP beenden

Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#59

Re: Windows XP beenden

  Alt 28. Jan 2005, 17:07
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);
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat