Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Function ExitwindowsEx in C/C++

Featured Replies

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]

I think this topic is a joke as he doesn't describe himself and he has one post. I could be wrong though.

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

I don't understand. Can you elaborate on what you did to get that error? Also, give system specifications.

j0xPu5R.png

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.