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 


Vb6 Shutdown Code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Sun Dec 16, 2007 6:50 am    Post subject: Vb6 Shutdown Code Reply with quote

Ive Searched But Most I Have Had Have Errors.
Im Going To Play Some Tricks On A Mate In School, For Telling Everyone About Me Fancying This Lass Evil or Very Mad So Now Im Going To Get My Own Back On Him.

Could Anyone Give Me A Working Vb6 Code?

Im Going To Prank Him By Making It Shutdown His Computer In School, Muhahahaha! Twisted Evil

Please?
Kickme93
Back to top
View user's profile Send private message
sliner360
Expert Cheater
Reputation: 0

Joined: 03 Jun 2007
Posts: 232

PostPosted: Sun Dec 16, 2007 6:55 am    Post subject: Reply with quote

try this

Code:
shutdownWindowsOS shutdownTypes.Shutdown
i got this from a source code of something i 4got where i dled from

btw when will you rep me 4 helping you with the login thing?
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Dec 16, 2007 6:57 am    Post subject: Reply with quote

You can't shutdown other people's computer, but you can give him a program, and it will shutdown when loaded or something, pick something he/she likes.

Firstly use:

Code:
Const EWX_LogOff As Long = 0
       Const EWX_SHUTDOWN = 1
       Const EWX_REBOOT = 2
       Const EWX_FORCE = 4
       Private Declare Function ExitWindows _
               Lib "User32" Alias "ExitWindowsEx" _
               (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long


Now in the form loading event or a command button event, add this:
Code:
ExitWindows EWX_SHUTDOWN, &HFFFFFFFF


If you wish to restart instead of shutting down, use this:
Code:
ExitWindows EWX_REBOOT, &HFFFFFFFF

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

Joined: 24 Oct 2007
Posts: 461

PostPosted: Sun Dec 16, 2007 9:52 am    Post subject: Reply with quote

sliner360 wrote:
try this

Code:
shutdownWindowsOS shutdownTypes.Shutdown
i got this from a source code of something i 4got where i dled from

btw when will you rep me 4 helping you with the login thing?


When It Lets Me, I Just -Repped Some Nub For My -Rep Which Was For No Reason.

Also, Thanks For The Code, Same To You Blader, Trying Now (Not Me, But That Freind Razz)
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Dec 16, 2007 9:59 am    Post subject: Reply with quote

Remember to save before you use it, since it will shutdown your comp. lol
_________________
Back to top
View user's profile Send private message
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Sun Dec 16, 2007 10:01 am    Post subject: Reply with quote

Im Not Idiotic To Test It Razz

Thats Why Ill Get Some Random Kid Too, HeHeHe..
Back to top
View user's profile Send private message
Thlump
Grandmaster Cheater
Reputation: 0

Joined: 26 Aug 2007
Posts: 964
Location: 206.51.226.121

PostPosted: Sun Dec 16, 2007 10:27 am    Post subject: Reply with quote

Theres a easier way to do it, just make a batch file for it. Then when he clicks it it will shut down his computer for real. Be sure to put a fake icon to disguise it though. Very Happy
_________________
Symbol wrote:
LOL!
Then its not a UCE, its UWF. (Undetected Windows Form. WITH BUTTONS! Laughing )
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Sun Dec 16, 2007 10:35 am    Post subject: Reply with quote

Shell (shutdown -s -f -t 1)
Back to top
View user's profile Send private message
Kumori Guardian
I'm a spammer
Reputation: 0

Joined: 19 Jun 2007
Posts: 6517
Location: http://forum.cheatengine.org/viewtopic.php?t=452539

PostPosted: Sun Dec 16, 2007 10:45 am    Post subject: Reply with quote

didn't bamssee give oyu the code
_________________
Back to top
View user's profile Send private message Visit poster's website
kickme93
Master Cheater
Reputation: 0

Joined: 24 Oct 2007
Posts: 461

PostPosted: Sun Dec 16, 2007 11:32 am    Post subject: Reply with quote

I Cant Remeber.
Was It In The Old Thread?
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
Page 1 of 1

 
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