Link to home
Start Free TrialLog in
Avatar of sukhoi35
sukhoi35

asked on

Log off cancellation notification to applications

Hello Experts,
My application runs on Windows 7 and when the user initiates a Windows Log-Off, I receive the message WM_QUERYENDSESSION through the method 'WindowProc'. At this point, I also get windows 'Force log off' screen as shown in the attached screenshot. When I click on cancel on this screen, is there any way that I can interpret this event in my program. I mean, just the way a log-off sent WM_QUERYENDSESSION, will I be notified with any message saying the log-off process was cancelled.

Regards.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sukhoi35
sukhoi35

ASKER

Thanks :)