|
-
Apr 23rd, 2001, 07:16 AM
#1
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
-
Apr 23rd, 2001, 03:37 PM
#2
Or is an operator. Just like And, + (add), -(minus), etc.
Just copy his code and paste it into your Form (with a Button).
-
Apr 23rd, 2001, 10:47 PM
#3
Frenzied Member
Or Operator In API Is Just like the AND operator in VB
-
Apr 23rd, 2001, 11:42 PM
#4
shragel,
Or Operator In API Is Just like the AND operator in VB
How do you figure? I don't understand that statement..
-
Apr 24th, 2001, 04:34 AM
#5
Registered User
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.
-
Apr 24th, 2001, 08:07 AM
#6
I'm glad I put that Math degree to good use....
(That sound you hear is my hand smacking my forehead...)
Thanks all for the awakening of some of my brain cells...
-QuaffAPint
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|