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

C / C++ / MFC

 
QuestionCDatabase::OpenEx failure kills UI thread Pin
Gary Wheeler6-Nov-09 5:13
Gary Wheeler6-Nov-09 5:13 
QuestionRe: CDatabase::OpenEx failure kills UI thread Pin
Randor 6-Nov-09 6:25
professional Randor 6-Nov-09 6:25 
AnswerRe: CDatabase::OpenEx failure kills UI thread Pin
Gary Wheeler6-Nov-09 8:35
Gary Wheeler6-Nov-09 8:35 
QuestionRunning task on shutdown Pin
__DanC__6-Nov-09 2:29
__DanC__6-Nov-09 2:29 
AnswerRe: Running task on shutdown Pin
Randor 6-Nov-09 6:08
professional Randor 6-Nov-09 6:08 
GeneralRe: Running task on shutdown Pin
Rajesh R Subramanian6-Nov-09 6:09
professionalRajesh R Subramanian6-Nov-09 6:09 
GeneralRe: Running task on shutdown Pin
__DanC__6-Nov-09 6:18
__DanC__6-Nov-09 6:18 
GeneralRe: Running task on shutdown Pin
Randor 6-Nov-09 6:51
professional Randor 6-Nov-09 6:51 
__DanC__ wrote:
Thanks for the reply, it is a user mode application


Usermode applications are limited in their ability to delay/prevent shutdown. You are basically limited to what I described in my previous posts. I believe that you have 5 seconds to respond to the WM_QUERYENDSESSION so you might be able to perform some last-second tasks.

__DanC__ wrote:
For example, when you a running Windows XP on a domain and you have offline file enabled, you will see the synchronisation window appear during the logoff to sync any remaining files back to the domain controller, I'm trying to achieve something like this.


Have you considered using Logon/Logoff[^] or Startup/Shutdown[^] scripts? This is typically what an administrator would use to execute something on shutdown/logoff.

Best Wishes,
-David Delaune
GeneralRe: Running task on shutdown Pin
__DanC__6-Nov-09 6:53
__DanC__6-Nov-09 6:53 
GeneralRe: Running task on shutdown Pin
Randor 6-Nov-09 7:07
professional Randor 6-Nov-09 7:07 
QuestionCreate Split Window in RightView of SDI Pin
Abinash Mohanty5-Nov-09 23:16
Abinash Mohanty5-Nov-09 23:16 
AnswerRe: Create Split Window in RightView of SDI Pin
Adam Roderick J5-Nov-09 23:22
Adam Roderick J5-Nov-09 23:22 
AnswerRe: Create Split Window in RightView of SDI Pin
jinlsg8-Nov-09 14:15
jinlsg8-Nov-09 14:15 
Questionwhere is my fault? Pin
goutom roy5-Nov-09 23:10
goutom roy5-Nov-09 23:10 
AnswerRe: where is my fault? Pin
Richard MacCutchan6-Nov-09 0:03
mveRichard MacCutchan6-Nov-09 0:03 
AnswerRe: where is my fault? Pin
Michael Schubert6-Nov-09 0:22
Michael Schubert6-Nov-09 0:22 
GeneralRe: where is my fault? PinPopular
David Crow6-Nov-09 3:27
David Crow6-Nov-09 3:27 
Questionhow to place CFromview on CDialog? [modified] Pin
jinlsg5-Nov-09 22:22
jinlsg5-Nov-09 22:22 
QuestionRe: how to place CFromview on CDialog? Pin
Adam Roderick J5-Nov-09 22:59
Adam Roderick J5-Nov-09 22:59 
AnswerRe: how to place CFromview on CDialog? Pin
David Crow6-Nov-09 3:28
David Crow6-Nov-09 3:28 
AnswerRe: how to place CFromview on CDialog? Pin
baerten6-Nov-09 3:53
baerten6-Nov-09 3:53 
QuestionUnhandled exception at 0x7714c3c2 Pin
MsmVc5-Nov-09 20:54
MsmVc5-Nov-09 20:54 
AnswerRe: Unhandled exception at 0x7714c3c2 Pin
Adam Roderick J5-Nov-09 21:11
Adam Roderick J5-Nov-09 21:11 
GeneralRe: Unhandled exception at 0x7714c3c2 Pin
MsmVc5-Nov-09 21:14
MsmVc5-Nov-09 21:14 
GeneralRe: Unhandled exception at 0x7714c3c2 Pin
Adam Roderick J5-Nov-09 21:17
Adam Roderick J5-Nov-09 21:17 

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.