| View previous topic :: View next topic |
| Author |
Message |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Thu Jul 19, 2007 7:46 am Post subject: Restart Windows --> code in here |
|
|
| Quote: |
procedure TForm1.Button1Click(Sender: TObject);
begin
ExitWindows(EW_RESTARTWINDOWS,0);
end; |
it works tested, but it exits windows...
heres a program were i used it, if u test it plz save and close all other programs
_________________
Last edited by malfunction on Thu Jul 19, 2007 7:50 am; edited 1 time in total |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Thu Jul 19, 2007 7:47 am Post subject: |
|
|
cool, i nvr knew that...
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Thu Jul 19, 2007 7:52 am Post subject: |
|
|
so u could make a program, using a timer, it would restart windows after 3 secs
then if i knew a piece of code which would make the program start with windows
(like a antivurs program)
it would be a small "virus" kind of program
i was searching for stuff yesterday and found it... (the code)
_________________
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jul 19, 2007 7:54 am Post subject: |
|
|
Here I have a better way (Not really the same effect) .... Call KeBugCheck/KeBugCheckEx
_________________
Last edited by UnLmtD on Thu Jul 19, 2007 2:02 pm; edited 1 time in total |
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 19, 2007 1:38 pm Post subject: |
|
|
zomgiownyou, uhm explain that code
i knew this, actually i found out like 2 days ago or so ( when i was making some sort of application launcher i though it could be nice to have a shutdown/restart button )
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jul 19, 2007 1:56 pm Post subject: |
|
|
Call that from a driver, and you got yourself a BSOD. KeBugCheckEx is more advanced, I beleive you can chose the error and stuff. KeBugCheck is the same thing as KeBugCheckEx but its put 0 in every parameter.
_________________
|
|
| Back to top |
|
 |
KingZero Expert Cheater
Reputation: 0
Joined: 27 Jun 2006 Posts: 103
|
Posted: Thu Jul 19, 2007 1:58 pm Post subject: |
|
|
| skyllakarean wrote: | so u could make a program, using a timer, it would restart windows after 3 secs
then if i knew a piece of code which would make the program start with windows
(like a antivurs program)
it would be a small "virus" kind of program
i was searching for stuff yesterday and found it... (the code) |
Put your program into autostart.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 19, 2007 2:13 pm Post subject: |
|
|
where is autostart ? sorry, but i seriously dont know lol
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jul 19, 2007 2:16 pm Post subject: |
|
|
Add you program in here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
or copy it to this folder: X:\Documents and Settings\<username>\Start Menu\Programs\Startup
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 19, 2007 2:19 pm Post subject: |
|
|
| thanks.
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Thu Jul 19, 2007 2:38 pm Post subject: |
|
|
I know it already, but still, thx :]
_________________
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Thu Jul 19, 2007 2:42 pm Post subject: |
|
|
But I like this method more.
| Code: | asm
mov al, 0FEh
out 64h, al
end; |
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jul 19, 2007 2:51 pm Post subject: |
|
|
^^^ I have seen this before, it will reboot the system right?
_________________
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Jul 19, 2007 3:07 pm Post subject: |
|
|
| with the power button, you have to load a driver and it doesn't work on older hardware.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jul 19, 2007 4:41 pm Post subject: |
|
|
| What about calling NTShutdownsystem?
|
|
| Back to top |
|
 |
|