Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Restart Windows --> code in here
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
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/

PostPosted: Thu Jul 19, 2007 7:46 am    Post subject: Restart Windows --> code in here Reply with quote

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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jul 19, 2007 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Thu Jul 19, 2007 7:52 am    Post subject: Reply with quote

so u could make a program, using a timer, it would restart windows after 3 secs Razz

then if i knew a piece of code which would make the program start with windows
(like a antivurs program)
Very Happy it would be a small "virus" kind of program

i was searching for stuff yesterday and found it... (the code)

_________________
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jul 19, 2007 7:54 am    Post subject: Reply with quote

Here I have a better way (Not really the same effect) Confused .... Call KeBugCheck/KeBugCheckEx
_________________


Last edited by UnLmtD on Thu Jul 19, 2007 2:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Thu Jul 19, 2007 1:38 pm    Post subject: Reply with quote

zomgiownyou, uhm explain that code Rolling Eyes Question

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
View user's profile Send private message MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jul 19, 2007 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
KingZero
Expert Cheater
Reputation: 0

Joined: 27 Jun 2006
Posts: 103

PostPosted: Thu Jul 19, 2007 1:58 pm    Post subject: Reply with quote

skyllakarean wrote:
so u could make a program, using a timer, it would restart windows after 3 secs Razz

then if i knew a piece of code which would make the program start with windows
(like a antivurs program)
Very Happy 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
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Thu Jul 19, 2007 2:13 pm    Post subject: Reply with quote

where is autostart ? Rolling Eyes sorry, but i seriously dont know lol
Back to top
View user's profile Send private message MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jul 19, 2007 2:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Thu Jul 19, 2007 2:19 pm    Post subject: Reply with quote

thanks.
Back to top
View user's profile Send private message MSN Messenger
DevilGilad
Grandmaster Cheater
Reputation: 0

Joined: 10 May 2007
Posts: 624
Location: Delete C:\WINDOWS folder and you'll be able to see me.

PostPosted: Thu Jul 19, 2007 2:38 pm    Post subject: Reply with quote

I know it already, but still, thx :]
_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Thu Jul 19, 2007 2:42 pm    Post subject: Reply with quote

But I like this method more.
Code:
asm
mov al, 0FEh
out 64h, al
end;
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jul 19, 2007 2:51 pm    Post subject: Reply with quote

^^^ I have seen this before, it will reboot the system right?
_________________
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jul 19, 2007 3:07 pm    Post subject: Reply with quote

with the power button, you have to load a driver and it doesn't work on older hardware.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jul 19, 2007 4:41 pm    Post subject: Reply with quote

What about calling NTShutdownsystem?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites