Hey
Is there anyone who has usd this API to shutdown the windows . while using this its not shutting down the windows properly . its just refreshing the desktop
ExitWindowsEx(4,0)
any idea why this happening & how to resolve that
thanks in advance
Printable View
Hey
Is there anyone who has usd this API to shutdown the windows . while using this its not shutting down the windows properly . its just refreshing the desktop
ExitWindowsEx(4,0)
any idea why this happening & how to resolve that
thanks in advance
Or is an operator. Just like And, + (add), -(minus), etc.
Just copy his code and paste it into your Form (with a Button).
Or Operator In API Is Just like the AND operator in VB
shragel,
How do you figure? I don't understand that statement..Quote:
Or Operator In API Is Just like the AND operator in VB
You use OR as a boolean operator, or to set bits.
In this case
EWX_FORCE Or EWX_SHUTDOWN
= 1 OR 4
(Bitwise comparison in binary)
001
100
-----
101 = 5 decimal
The result of using OR in this case is to set the bits to force a shutdown.
What would happen if you used AND instead of OR?
001
100
-----
000 = 0
Then nothing would happen.
I'm glad I put that Math degree to good use....
:rolleyes:
(That sound you hear is my hand smacking my forehead...)
Thanks all for the awakening of some of my brain cells...
-QuaffAPint