I need to do the same thing (run a exe on log off), i just created an application and subclassed it. when windows sent the WM_QUERYENDSESSION message to the my application i then inserted my extra code i wanted to run, and then continued to shutdown windows.
Hi all,
i havent seen this problem first hand but one of our small subsidery networks is running a NT Server 4, and Workstation.
The problem is that everyone can log into the workstation and do everything fine, but its just the 1 user that logs onto the workstation recieves a message that it...
That is true, the WM_SYSCOMMAND should detect a WM_QUERYENDSESSION and if that value = true then maybe i can sendmessage to ExitWindows API to cancel.
i guess the answer somewhere between these lines, i may have to do some more research on it, unless someone already knows how to capture the...
Some good tools, heres an updated link . http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
some good additonal features from the NT resource kit, but none are any value to my shutdown suitation unfortunity.
if WinNT had a log off script procedure like 2K, i would probably be out of the...
Thanks ADoozer, unfortunity that api call only hooks into the registry shutdown process of the machine and doesnt see any other under layer shutdown calls. if it did your solution would have been perfect.
The program we want the users to log out of is a bought product which uses a telnet...
Thanks for the reply,
I would say that would work but unfortunity, this isn't a custom made application.
we do have time limits before a user automatically gets logged off in our application, but at the end of the day they forget to go through the correct log off procedure, and rather shut the...
Hi,
is it possible to detect if windows is shutting down or user is logging off the system, and if so, is there any API to cancel out the shutdown api from excuting?
we are tring to prevent our users from shutting down the computer without logging out of there applications first.
any idea's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.