arkadaslar ben c/c++ da bilgisatarı yeniden başlatacak/kapatacak reset kodu arıyorum hangisi olursa olsun farketmez kod daha çok borland c/c++ 3.1 uyumlu olursa ve xp dede çalışısa iyi olur
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.
How to Shut Down the System The following example uses the ExitWindowsEx function to shut down the system. Shutting down flushes file buffers to disk and brings the system to a condition in which it is safe to turn off the computer. The application must first enable the SE_SHUTDOWN_NAME privilege. For more information, see Privileges.
The final parameter in the call to ExitWindowsEx indicates that the system was shut down for a planning update of the operating system. For more information, see System Shutdown Reason Codes.
Requirements Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95. Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server. Header Declared in Winuser.h; include Windows.h. Library Link to User32.lib. DLL Requires User32.dll.
EWX_SHUTDOWN yerine EWX_REBOOT ile reboot edebilirsin. bu örnek interaktif kullanıcı isen geçerli değilsen InitiateSystemShutdown yada InitiateSystemShutdownEx fonksiyonlarını kullanmalısın. detaylı bilgi için MS Platform SDK da ExitWindowsEx fonksiyonuna bakmalısın.
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.