Death44 Napisano Październik 13, 2006 Zgłoś Share Napisano Październik 13, 2006 mam taki problem daje pod przycisk taki kod kompiluje i gdy naciskam przycisk i nic sie ort! (system sie nie restartuje) mam win xp i delphi 7procedure TForm1.Button1Click(Sender: TObject);beginExitWindowsEx(EWX_REBOOT,0);end;[b]// Następnym razem nie zapomnij o [Delphi] - Iskar Link do komentarza Udostępnij na innych stronach More sharing options...
KKKas Napisano Październik 13, 2006 Zgłoś Share Napisano Październik 13, 2006 A czy czytałeś informacje o tej funkcji? Dowiesz się czegoś. ҉ Link do komentarza Udostępnij na innych stronach More sharing options...
Death44 Napisano Październik 13, 2006 Autor Zgłoś Share Napisano Październik 13, 2006 ort! ale pisze dokładnie tak:Jak zamknąć system, uruchomić ponownie Windows lub komputerNalezy wykorzystac funkcje ExitWindowsEx z parametrem :EWX_FORCEForces processes to terminate. Instead of bringing up the "application not responding" dialog box for the user, this value forces an application to terminate if it does not respond.EWX_LOGOFFShuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.EWX_POWEROFFShuts down the system and turns off the power.EWX_REBOOTShuts down the system and then restarts the system.EWX_SHUTDOWNShuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.Przykład [delphi][/delphi][b]// Nie rób takich błędów ortograficznych, poza tym korzystaj z tagów do kolorowania składni - Iskar Link do komentarza Udostępnij na innych stronach More sharing options...
evil Napisano Październik 13, 2006 Zgłoś Share Napisano Październik 13, 2006 Na win Xp to ci nie zadziała. Na 4p gdzie był taki kod żeby zrestarowac kompa, poszukaj to znajdzież. Link do komentarza Udostępnij na innych stronach More sharing options...
Death44 Napisano Październik 13, 2006 Autor Zgłoś Share Napisano Październik 13, 2006 te 4p to adres strony? Link do komentarza Udostępnij na innych stronach More sharing options...
evil Napisano Październik 13, 2006 Zgłoś Share Napisano Październik 13, 2006 adres strony to 4programmers.net - szukaj na forum Link do komentarza Udostępnij na innych stronach More sharing options...
KKKas Napisano Październik 15, 2006 Zgłoś Share Napisano Październik 15, 2006 Nie wiem skąd Ty to wkleiłes, u mnie jest: [quote] EWX_REBOOTShuts down the system and then restarts the system. Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. (...) [/quote] ҉ Link do komentarza Udostępnij na innych stronach More sharing options...
Polecane posty
Zarchiwizowany
Ten temat jest archiwizowany i nie można dodawać nowych odpowiedzi.