I had used the quitquery under WinXP to prevent a user from closing the application when open. I think the code is still working. I will verify on an WinXP laptop I still have.
However, under Win7, it appears that this code is bypassed and the application just processes a quit of the application. Has anything changed with this DCGETOPTIONS and does a change have to be made to make it work with Win7.
QuitQuery and Win7
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: QuitQuery and Win7
Post a sample program and I will look into this.
The eXpress train is coming - and it has more cars.
Re: QuitQuery and Win7
did you talk about o:systemPowerStatus ?Cliff Wiernik wrote:However, under Win7, it appears that this code is bypassed and the application just processes a quit of the application.
as it is based on WM_POWERBROADCAST Message it will NOT help you to prevent "Suspend" on OS() > Vista.
Return Value XBP_REJECT of Function QuitQuery() will NOT work this Way on Win7/8/10 e.g. when close Notebook Display.
read more here https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
greetings by OHR
Jimmy
Jimmy