?
Solved

Problem with WM_QUERYENDSESSION on NT receiving

Posted on 1997-04-02
1
Medium Priority
?
384 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
bhoward earned 300 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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…
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

801 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