Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Code Executed Twice - OnHScroll() Pin
AmbiguousName6-Jun-12 1:35
AmbiguousName6-Jun-12 1:35 
GeneralRe: Code Executed Twice - OnHScroll() Pin
Chris Losinger6-Jun-12 1:38
professionalChris Losinger6-Jun-12 1:38 
GeneralRe: Code Executed Twice - OnHScroll() Pin
AmbiguousName6-Jun-12 1:40
AmbiguousName6-Jun-12 1:40 
GeneralRe: Code Executed Twice - OnHScroll() Pin
Chris Losinger6-Jun-12 2:08
professionalChris Losinger6-Jun-12 2:08 
AnswerRe: Code Executed Twice - OnHScroll() Pin
Malli_S6-Jun-12 21:43
Malli_S6-Jun-12 21:43 
SuggestionRe: Code Executed Twice - OnHScroll() Pin
David Crow6-Jun-12 2:40
David Crow6-Jun-12 2:40 
QuestionHow to stop indexing from restarting? Pin
Wolfkc5-Jun-12 12:14
professionalWolfkc5-Jun-12 12:14 
AnswerRe: How to stop indexing from restarting? Pin
enhzflep5-Jun-12 16:01
enhzflep5-Jun-12 16:01 
Before I start, I'll admit to feeling dirty for even considering such an approach..

However, it sounds very much like the service has a watch-dog application monitoring it. Once the monitoring app detects that it is no longer running, it simply restarts the service.

If this is the case, you may be able to fool the watch-dog app. Often this type of arrangement has a Mutex at it's heart. The service creates a mutex, the watch-dog then tries periodically to create a mutex with the same name. If the operation fails, the service is still running as per normal. If on the other hand, the mutex creation is successful, one can safely assume that the intended creator of the mutex (the service) has ceased running and taken the mutex with it.


On second thoughts, scratch that idea - it's a service that comes bundled with Windows. It seems likely that Windows itself maintains an in-memory list of services and their current state.

On third thoughts, I can't think of a way of doing this (other than with the standard Services dialogs) that couldn't reasonably be considered a hack. Nonetheless,

I just read a thread in which one writer spoke of having to change the permissions on some registry key(s?) in order to change the service startup type...

Last post here.[^]

I guess that leaves you an avenue of investigation:

  • Change the reg-key to indicate Disabled, kill the service. Once proessing done, set Automatic (Delayed Start) then let windows start the service up when 'needed'.


No idea which RegKey though..
QuestionRe: How to stop indexing from restarting? Pin
David Crow6-Jun-12 2:41
David Crow6-Jun-12 2:41 
AnswerRe: How to stop indexing from restarting? Pin
jschell6-Jun-12 9:16
jschell6-Jun-12 9:16 
QuestionDrawing taking time Pin
john56323-Jun-12 23:58
john56323-Jun-12 23:58 
AnswerRe: Drawing taking time Pin
Chris Losinger4-Jun-12 5:30
professionalChris Losinger4-Jun-12 5:30 
AnswerRe: Drawing taking time Pin
Code-o-mat4-Jun-12 6:15
Code-o-mat4-Jun-12 6:15 
AnswerRe: Drawing taking time Pin
Albert Holguin4-Jun-12 8:42
professionalAlbert Holguin4-Jun-12 8:42 
QuestionHow to ban ip in the chatroom ? Pin
wangningyu3-Jun-12 22:42
wangningyu3-Jun-12 22:42 
AnswerRe: How to ban ip in the chatroom ? Pin
Chris Losinger4-Jun-12 0:47
professionalChris Losinger4-Jun-12 0:47 
AnswerRe: How to ban ip in the chatroom ? Pin
Iain Clarke, Warrior Programmer4-Jun-12 0:59
Iain Clarke, Warrior Programmer4-Jun-12 0:59 
GeneralRe: How to ban ip in the chatroom ? Pin
wangningyu4-Jun-12 5:01
wangningyu4-Jun-12 5:01 
GeneralRe: How to ban ip in the chatroom ? Pin
Iain Clarke, Warrior Programmer4-Jun-12 6:16
Iain Clarke, Warrior Programmer4-Jun-12 6:16 
QuestionDifferenciating Between Variables Pin
AmbiguousName3-Jun-12 19:51
AmbiguousName3-Jun-12 19:51 
AnswerRe: Differenciating Between Variables Pin
Iain Clarke, Warrior Programmer3-Jun-12 20:39
Iain Clarke, Warrior Programmer3-Jun-12 20:39 
GeneralRe: Differenciating Between Variables Pin
AmbiguousName3-Jun-12 23:36
AmbiguousName3-Jun-12 23:36 
GeneralRe: Differenciating Between Variables Pin
Iain Clarke, Warrior Programmer4-Jun-12 0:00
Iain Clarke, Warrior Programmer4-Jun-12 0:00 
GeneralRe: Differenciating Between Variables Pin
Erudite_Eric4-Jun-12 0:42
Erudite_Eric4-Jun-12 0:42 
SuggestionRe: Differenciating Between Variables Pin
David Crow4-Jun-12 2:46
David Crow4-Jun-12 2:46 

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.