Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Shutting Down
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AnubisProgrammer




PostPosted: Wed Apr 12, 2006 1:04 pm   Post subject: Shutting Down

I'm using the ExitWindowsEX(EWX_POWEROFF, NULL) command. Now, I've just recently started learning about that, so first off, I'm not sure if that command is correct. Second of all, it doesn't seem to work. I'm using a school computer, I'm not sure if that would affect it or not. Any thoughts on shutting a system down using a win32 Console APP on win xp?
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Wed Apr 12, 2006 1:25 pm   Post subject: (No subject)

We usually don't help people try to abuse systems and cause trouble for others. Have you tried the program on your own computer?
AnubisProgrammer




PostPosted: Wed Apr 12, 2006 1:31 pm   Post subject: (No subject)

It's not so much causing trouble for others. I plan on pursuing a career in computer security, so to do that I need to familiarize myself with various commands and functions that could be used in a malicious fashion. Anyways, I figured out what my problem was. Thanks anyways.
wtd




PostPosted: Wed Apr 12, 2006 1:45 pm   Post subject: (No subject)

Inherent limitation in the Windows "console"?
AnubisProgrammer




PostPosted: Wed Apr 12, 2006 9:48 pm   Post subject: (No subject)

I was missing part of the code that let me shut down on a multi-user platform. I just needed to add that in, as well as the NULL and it shut down. I was pretty happy when it finally worked.
wtd




PostPosted: Wed Apr 12, 2006 10:03 pm   Post subject: (No subject)

Do you have to explicitly tell the function to execute with administrative privileges, or is it a matter of logging everyone else out first?
md




PostPosted: Thu Apr 13, 2006 8:39 pm   Post subject: (No subject)

The function is probably tied to a specific user level; if your not an admin or system user then you probably can't call it. Windows secutiry is actually well thought out... just poorly implemented in practice.
AnubisProgrammer




PostPosted: Fri Apr 14, 2006 5:00 pm   Post subject: (No subject)

Ya, there's a specific piece of code I have to add to be able to shut the system down. I'm using a student account with very limited access. You have to add this code any time there's more then one user on the system (or so I'm told). I have to take a better look at the code to see exactly what it's doing. I'll get back to you on that one.
Sponsor
Sponsor
Sponsor
sponsor
Sanjay




PostPosted: Sun Apr 30, 2006 3:26 pm   Post subject: (No subject)

First things first, get a fucking life, mate.
Never, ever ask anyone for help so you can "h4x0r teh 5k00L l0l0l0l0l0l"
It doesn't expand your knowledge of programming.
It doesn't help you to get better at programming.
It serves no purpose other than to make you feel like j00 4r3 teh uber h4x0r w00t w00t. You are not. You are just some lowlife kid who doesn't understand any of the fundamental principles of hacking. Well done.
All that being said, when I was about 10, I liked be a malicious fucker and more than enough times I told people I was just interested in computer security.

Now, for your actual question.

GOOGLE IS YOUR FRIEND
http://www.google.ca/search?client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial_s&hl=en&q=ExitWindowsEX%28EWX_POWEROFF%2C+NULL%29+&meta=&btnG=Google+Search
leads you to
http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=503
Decievingly entitled "Windows Logoff/Shutdown", so it really wasn't your fault.

Stop wasting people's time.
Justin_




PostPosted: Sun Apr 30, 2006 4:23 pm   Post subject: (No subject)

Nice first post Sanjay, you are less mature than Annubis for that disgraceful post. Note that the post is 18 days ago?

For the love of God, don't join internet communities so you can talk smack. Talk smack in real life so you can get your teeth knocked out like you deserve.
Sanjay




PostPosted: Sun Apr 30, 2006 4:44 pm   Post subject: (No subject)

Justin_ wrote:
Nice first post Sanjay, you are less mature than Annubis for that disgraceful post. Note that the post is 18 days ago?

For the love of God, don't join internet communities so you can talk smack. Talk smack in real life so you can get your teeth knocked out like you deserve.

Ok, I admit that I was very vicious. Immature, no.
And I didn't notice that this thread is 18 days old, it was very near the top of the list of threads.

I didn't join this internet community so I could talk smack. In fact, that wasn't really talking smack. I was making two valid points.
#1: Hacking ethics are extremely compromised these days
#2: Google is your friend.

I managed to find the answer to his question by Googling "ExitWindowsEX(EWX_POWEROFF, NULL)".
Could he not have done that himself?


I do deserve to get my teeth knocked out, but not for anything that you know of. So back the fuck off trying to be a hardman.


It was nice to meet you too Smile
Sanjay




PostPosted: Sun Apr 30, 2006 4:47 pm   Post subject: (No subject)

Seeing as I can't edit posts, one more thing:
I am not going to get into a flame war with you over this. We clearly have very different views on the matter at hand and nothing I say is going to change what you think, and nothing you say is going to change what I think.

End of discussion?
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: