Author | Message | Time |
---|---|---|
PaiD | Ok is this possible? I have subclassed my app so that I can detect when the User is logging off But the other apps also recieve it. Most of the apps close and when mine gets the message I denied the User logging off. What I wanted to know is is there a way to also tell the other apps not to shutdown? | July 29, 2005, 8:27 PM |
Topaz | I don't believe you can. | July 29, 2005, 9:47 PM |
Topaz | I decided to look it up, and found: WM_QUERYENDSESSION | August 4, 2005, 3:07 AM |
PaiD | Topaz.... I know that 1. I am using that and I can tell when the user is logging off. My problem is I wanted to tell the other apps open not to close when they get the message and I tell the comp not to log off. I can do all but tell the other apps not to close | August 4, 2005, 4:28 AM |
Adron | Sounds like the other applications are malfunctioning. Delete them from your hard drive. | August 4, 2005, 8:52 AM |
Grok | [quote author=Adron link=topic=12366.msg123033#msg123033 date=1123145536] Sounds like the other applications are malfunctioning. Delete them from your hard drive. [/quote] Haha, evil. The other programs are running in the context of the logged on user. When the session ends, the user environment is getting destroyed, and all those programs will close, willingly or by force. If you want them to continue, either run them as services, or (not sure about this) use RUNAS .. though I think that only affects security context. | August 4, 2005, 1:37 PM |