Windows'u Yeniden Baþlatmak ve Kapatmak Hakkýnda

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
Kullanıcı avatarı
cagri_85
Üye
Mesajlar: 95
Kayıt: 16 Oca 2004 11:10

Windows'u Yeniden Baþlatmak ve Kapatmak Hakkýnda

Mesaj gönderen cagri_85 »

selam

bu kodun sonundaki 0 ne anlama geliyor :?:
1 olursa ne olur 0 olursa ne olur.

ExitWindowsEx(EWX_PowerOff,0);

sevgiler, :wink:
Kullanıcı avatarı
mrmarman
Üye
Mesajlar: 4741
Kayıt: 09 Ara 2003 08:13
Konum: İstanbul
İletişim:

Mesaj gönderen mrmarman »

MSDN Home'daki açıklamalara göre
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/NT and Windows Me/98/95: This parameter is ignored.
en son satırda belirtilen işletim sistemlerini kullanıyorsan ne yazarsan yaz işleme alınmayacaktır diyor...

- Microsoft; nt5 ve sonrasi icin shutdown reason olarak ayırmış. Bunu da Ekşi Sözlük'ten öğreniyoruz...
Resim
Resim ....Resim
Kullanıcı avatarı
mussimsek
Admin
Mesajlar: 7604
Kayıt: 10 Haz 2003 12:26
Konum: İstanbul
İletişim:

Mesaj gönderen mussimsek »

Demekki çok eskiden planlamışlar. Windows 2003'te kapattığın veya restart ettiğin zaman soruyor, niye kapatıyorsun diye.
Cevapla