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

C / C++ / MFC

 
General,device arrival message Pin
Anonymous28-Jun-05 12:11
Anonymous28-Jun-05 12:11 
GeneralBegin_message_map Pin
kongy7928-Jun-05 9:40
kongy7928-Jun-05 9:40 
GeneralRe: Begin_message_map Pin
David Crow28-Jun-05 10:35
David Crow28-Jun-05 10:35 
GeneralRe: Begin_message_map Pin
kongy7928-Jun-05 14:12
kongy7928-Jun-05 14:12 
QuestionHow to version a DLL generated by Message Compiler ? Pin
jlarsj28-Jun-05 9:39
jlarsj28-Jun-05 9:39 
QuestionHow do you Monitor a Windows Service? Pin
Rodney Sullivan28-Jun-05 7:56
Rodney Sullivan28-Jun-05 7:56 
AnswerRe: How do you Monitor a Windows Service? Pin
Blake Miller28-Jun-05 12:40
Blake Miller28-Jun-05 12:40 
GeneralRe: How do you Monitor a Windows Service? Pin
Rodney Sullivan29-Jun-05 4:52
Rodney Sullivan29-Jun-05 4:52 
Once I detect it as hung, I want to kill it and restart it. Using a counter-monitoring thread sounds good. I was also thinking of calling ::ControlService() with SERVICE_CONTROL_INTERROGATE to see if the call returns in a timely fashion, but I've heard this might not work because the Handler might still be processing commands when the rest of the service is hanging. Although, arranging the Handler to wait on an event to be set within ServiceMain() could still timeout the ::ControlService() call appropriately. Does this approach make sense, or do you think it's over-complicating things?

Rodney
GeneralRe: How do you Monitor a Windows Service? Pin
Blake Miller29-Jun-05 5:24
Blake Miller29-Jun-05 5:24 
GeneralRe: How do you Monitor a Windows Service? Pin
Rodney Sullivan29-Jun-05 5:59
Rodney Sullivan29-Jun-05 5:59 
GeneralRe: How do you Monitor a Windows Service? Pin
Blake Miller29-Jun-05 6:12
Blake Miller29-Jun-05 6:12 
GeneralRe: How do you Monitor a Windows Service? Pin
Rodney Sullivan29-Jun-05 7:31
Rodney Sullivan29-Jun-05 7:31 
GeneralRe: How do you Monitor a Windows Service? Pin
Blake Miller29-Jun-05 7:52
Blake Miller29-Jun-05 7:52 
GeneralSlider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 6:47
jerry1211a28-Jun-05 6:47 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
Trollslayer28-Jun-05 7:01
mentorTrollslayer28-Jun-05 7:01 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
David Crow28-Jun-05 7:09
David Crow28-Jun-05 7:09 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 7:30
jerry1211a28-Jun-05 7:30 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
David Crow28-Jun-05 7:41
David Crow28-Jun-05 7:41 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 8:12
jerry1211a28-Jun-05 8:12 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
David Crow28-Jun-05 8:20
David Crow28-Jun-05 8:20 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 8:24
jerry1211a28-Jun-05 8:24 
GeneralXMLDOMDocument across processes Pin
Alex_Y28-Jun-05 6:29
Alex_Y28-Jun-05 6:29 
GeneralRe: XMLDOMDocument across processes Pin
Alex_Y28-Jun-05 9:24
Alex_Y28-Jun-05 9:24 
Questionwinsock2? Pin
nellutla28-Jun-05 6:20
nellutla28-Jun-05 6:20 
AnswerRe: winsock2? Pin
Trollslayer28-Jun-05 6:39
mentorTrollslayer28-Jun-05 6:39 

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.