Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pointers to IE Pin
Hamid_RT8-Mar-06 8:52
Hamid_RT8-Mar-06 8:52 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 8:59
folkenmax8-Mar-06 8:59 
GeneralRe: Pointers to IE Pin
Hamid_RT8-Mar-06 9:14
Hamid_RT8-Mar-06 9:14 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 9:18
folkenmax8-Mar-06 9:18 
GeneralRe: Pointers to IE Pin
Hamid_RT8-Mar-06 9:27
Hamid_RT8-Mar-06 9:27 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 9:39
folkenmax8-Mar-06 9:39 
QuestionCapturing the LogOff Event Pin
Eytukan8-Mar-06 2:57
Eytukan8-Mar-06 2:57 
AnswerRe: Capturing the LogOff Event Pin
James R. Twine8-Mar-06 3:30
James R. Twine8-Mar-06 3:30 
   You need to be looking out for WM_ENDSESSION, paying attention to the parameters of the message to tell if the user is logging off or not, or if a shutdown is being done.

   Note that a well-known author wrote a few articles regarding problems with reliable detection of system shutdown and used something called the "Notepad test" to do it.  Googling for that phrase may help.

   You can also create a handler for the CTRL_LOGOFF_EVENT event (which may only be sent to console applications), which might work, too.  A true Service will get shutdown notifications as well.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: Capturing the LogOff Event Pin
Eytukan8-Mar-06 3:36
Eytukan8-Mar-06 3:36 
QuestionNeed some help! Pin
munsiyari8-Mar-06 2:12
munsiyari8-Mar-06 2:12 
AnswerRe: Need some help! Pin
David Crow8-Mar-06 2:24
David Crow8-Mar-06 2:24 
AnswerRe: Need some help! Pin
Hamid_RT8-Mar-06 2:48
Hamid_RT8-Mar-06 2:48 
GeneralRe: Need some help! Pin
munsiyari8-Mar-06 3:05
munsiyari8-Mar-06 3:05 
QuestionAFX_ISOLATIONAWARE_FUNC crash Pin
Rob Caldecott8-Mar-06 1:38
Rob Caldecott8-Mar-06 1:38 
AnswerRe: AFX_ISOLATIONAWARE_FUNC crash Pin
Nibu babu thomas8-Mar-06 17:19
Nibu babu thomas8-Mar-06 17:19 
AnswerSolution: Struct member alignment Pin
Rob Caldecott8-Mar-06 21:11
Rob Caldecott8-Mar-06 21:11 
AnswerAnother Solution ... Pin
barneyman4-Dec-11 17:35
barneyman4-Dec-11 17:35 
QuestionWaveForm Display of Data Pin
kmsekhar8-Mar-06 0:28
kmsekhar8-Mar-06 0:28 
AnswerRe: WaveForm Display of Data Pin
jhwurmbach8-Mar-06 2:25
jhwurmbach8-Mar-06 2:25 
QuestionForbit MRU Updation Pin
Farhat Aisha7-Mar-06 23:42
Farhat Aisha7-Mar-06 23:42 
AnswerRe: Forbit MRU Updation Pin
Malli_S8-Mar-06 0:02
Malli_S8-Mar-06 0:02 
GeneralRe: Forbit MRU Updation Pin
Farhat Aisha8-Mar-06 0:25
Farhat Aisha8-Mar-06 0:25 
GeneralRe: Forbit MRU Updation Pin
Malli_S8-Mar-06 0:37
Malli_S8-Mar-06 0:37 
QuestionShell Executing From VC++ Pin
Malli_S7-Mar-06 23:40
Malli_S7-Mar-06 23:40 
AnswerRe: Shell Executing From VC++ Pin
Nibu babu thomas7-Mar-06 23:58
Nibu babu thomas7-Mar-06 23:58 

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.