problem with api of "exitwindowsex"
hi,
a while ago i wrote a program using api of exitwindowsex to shut the pc down at the time arranged by user. but the api turned the value of "0" which means api is not working, at the same time the process was cancelled by a program runs on the pc. could u pls help me with this issue? which or what kind of program may cause this problem?
Re: problem with api of "exitwindowsex"
Welcome to the forums. :wave: http://www.vbforums.com/attachment.p...id=47243&stc=1
More information please.
Is this happening on all PCs running your program or just on one?
How do you know a program "cancelled" your program? What evidence do you have that this is the case?
Re: problem with api of "exitwindowsex"
first of all, thank you for welcoming me.
i used a msgbox to know the turning value from the process. i had read that from a book that was written in my country where said that if the process fails, the turning value is 0. and there was an explanation saying that its cause of a program runs in pc. the program worked for 1-2 times in my pc. but no longer. it only shuts the all programs running, but not the pc
Re: problem with api of "exitwindowsex"
Can you post the code you are using and tell us what OS you are using?
Re: problem with api of "exitwindowsex"
codes are completely running. by the way i wrote another batch file in DOS to do same process but its not working also. i mean it works same as this api
Re: problem with api of "exitwindowsex"
I thought the codes weren't running, in other words the PC isn't closing. If we don't see the code or get some more information, it's very hard to guess what the problem is...