Solved

Problem with WM_QUERYENDSESSION on NT receiving

Posted on 1997-04-02
1
378 Views
Last Modified: 2013-12-03
At first i am sorry for my english. I run my 16 bit app on Win NT. This app runs some other 16 bit apps as child processes. When i try exit Win NT the main app processes WM_QUERYENDSESSION message and stops Win NT exit.  Child processes don't receive WM_QUERYENDSESSION message, but Win NT informs me the app is not responding. How can i shake off this problem. I have not this problem on Win 95 or  Win 3.1.
0
Comment
Question by:Semenishev
1 Comment
 
LVL 1

Accepted Solution

by:
bhoward earned 100 total points
ID: 1334336
You might also need to process the WM_ENDSESSION message.  It is sent to all applications that halted the shut-down process to tell them whether the session was actually closing or not.  There are conditions where an apps denial of the WM_QUERYENDSESSION will not be able to stop the shutdown.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now