Jump to content

Function ExitwindowsEx in C/C++


SiteAdvisor

Recommended Posts

I this a joke topic or a bad misspelling?

 

If its a misspelling would you please explain the problem in more detail.

[hide=Drops]

  • Dragon Axe x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

Link to comment
Share on other sites

I've corrected the spelling.

 

 

 

~Turtlefemm

No one needs to get their ass on their shoulders about this

--the_tallest1
"Talent hits a target no one else can hit; Genius hits a target no one else can see."
-- Arthur Schopenhauer

My deviantart gallery --- Turtlequirks Zazzle

Link to comment
Share on other sites

Guest Cosinus

It's a simple function, easy to understand how it works and how to use it after reading on MSDN.

 

 

 

BOOL WINAPI ExitWindowsEx(

 UINT uFlags,

 DWORD dwReason

);

 

Function for performing shut-down procedures. Returns 0 on failure, and anything but zero on success.

 

 

 

UINT uFlags: Shutdown-type, list is available on MSDN. For example: EWX_POWEROFF (or 0x00000008) will shut down the running system and power off.

 

 

 

DWORD dwReason: Reason for the shutdown, list of possible reasons available on MSDN. For example: SHTDN_REASON_MAJOR_APPLICATION (or 0x00040000) should be used if the reason is an Application issue. If no reason is specified it'll be tagged as an unplanned shutdown and will create an system state information file, which might slow down the shut-down procedure.

 

 

 

Using the function is simple:

 


ExitWindowsEx( EWX_POWEROFF , SHTDN_REASON_MAJOR_APPLICATION );

 

or...

 


ExitWindowsEx( 0x00000008 , 0x00040000 );

 

 

 

Useful links:

 

http://msdn.microsoft.com/en-us/library/aa376868(VS.85).aspx

 

http://msdn.microsoft.com/en-us/library/aa376885(VS.85).aspx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.