QuitQuery and Win7

This forum is for eXpress++ general support.
Post Reply
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

QuitQuery and Win7

#1 Post by Cliff Wiernik »

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.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: QuitQuery and Win7

#2 Post by rdonnay »

Post a sample program and I will look into this.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: QuitQuery and Win7

#3 Post by Auge_Ohr »

Cliff Wiernik wrote:However, under Win7, it appears that this code is bypassed and the application just processes a quit of the application.
did you talk about o:systemPowerStatus ?

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

Post Reply