Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the system font Pin
Anonymous17-Dec-02 21:49
Anonymous17-Dec-02 21:49 
QuestionHow to run an application as service Pin
prateetibhargava16-Dec-02 23:42
prateetibhargava16-Dec-02 23:42 
AnswerRe: How to run an application as service Pin
Christian Graus16-Dec-02 23:47
protectorChristian Graus16-Dec-02 23:47 
GeneralRe: How to run an application as service Pin
Anonymous17-Dec-02 1:54
Anonymous17-Dec-02 1:54 
GeneralRe: How to run an application as service Pin
Taka Muraoka17-Dec-02 3:30
Taka Muraoka17-Dec-02 3:30 
GeneralPerforming lengthy operations on shutdown Pin
jales16-Dec-02 23:03
jales16-Dec-02 23:03 
GeneralRe: Performing lengthy operations on shutdown Pin
Maximilien17-Dec-02 2:50
Maximilien17-Dec-02 2:50 
GeneralRe: Performing lengthy operations on shutdown Pin
jales17-Dec-02 3:07
jales17-Dec-02 3:07 
Maximilien wrote:
If you handle the WM_QUERYENDSESSION message in your application ( which I assume you are doing ), the OS should wait until your application is done before continuing with the shutdown/logoff process; It might show the "wait/cancel" dialog if the application is not responding for too long.

The reason that I'm not doing the work in the handler is to avoid that dialog from ever being shown. I also need to do a similar task on logon, and I solved that by registering the application in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run. Isn't there a way to register an application to run on shutdown?

Thank you
Artur Jales Moreira
GeneralRe: Performing lengthy operations on shutdown Pin
Jason Henderson17-Dec-02 3:11
Jason Henderson17-Dec-02 3:11 
GeneralRe: Performing lengthy operations on shutdown Pin
jales17-Dec-02 3:22
jales17-Dec-02 3:22 
GeneralRe: Performing lengthy operations on shutdown Pin
Nitron17-Dec-02 3:45
Nitron17-Dec-02 3:45 
GeneralRe: Performing lengthy operations on shutdown Pin
jales17-Dec-02 23:31
jales17-Dec-02 23:31 
GeneralActiveX Control Pin
chepuri_uk16-Dec-02 22:56
chepuri_uk16-Dec-02 22:56 
GeneralRe: ActiveX Control Pin
Nitron17-Dec-02 3:31
Nitron17-Dec-02 3:31 
GeneralApplication Error Pin
:_Rocket_:16-Dec-02 22:01
:_Rocket_:16-Dec-02 22:01 
GeneralRe: Application Error Pin
Christian Graus16-Dec-02 22:06
protectorChristian Graus16-Dec-02 22:06 
GeneralRe: Application Error Pin
jhwurmbach16-Dec-02 22:50
jhwurmbach16-Dec-02 22:50 
GeneralRe: Application Error Pin
Jason Henderson17-Dec-02 3:16
Jason Henderson17-Dec-02 3:16 
GeneralHard Disk Pin
Micheal John16-Dec-02 21:44
Micheal John16-Dec-02 21:44 
GeneralRe: Hard Disk Pin
Prem Kumar16-Dec-02 22:31
Prem Kumar16-Dec-02 22:31 
GeneralRe: Hard Disk Pin
Renjith Ramachandran17-Dec-02 2:04
Renjith Ramachandran17-Dec-02 2:04 
GeneralMFC messages Pin
Luke Murray16-Dec-02 21:34
Luke Murray16-Dec-02 21:34 
GeneralRe: MFC messages Pin
Prem Kumar16-Dec-02 22:23
Prem Kumar16-Dec-02 22:23 
GeneralRe: MFC messages Pin
Joaquín M López Muñoz16-Dec-02 22:35
Joaquín M López Muñoz16-Dec-02 22:35 
GeneralWindow Color Pin
pranavamhari16-Dec-02 21:09
pranavamhari16-Dec-02 21:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.