Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Which Performance value for checking leakage? Pin
Graham Bradshaw7-Dec-05 2:35
Graham Bradshaw7-Dec-05 2:35 
GeneralRe: Which Performance value for checking leakage? Pin
S. Senthil Kumar7-Dec-05 5:34
S. Senthil Kumar7-Dec-05 5:34 
GeneralRe: Which Performance value for checking leakage? Pin
Graham Bradshaw7-Dec-05 5:59
Graham Bradshaw7-Dec-05 5:59 
QuestionHow to add and remove a toolbar? Pin
Franken6-Dec-05 23:56
Franken6-Dec-05 23:56 
AnswerRe: How to add and remove a toolbar? Pin
kakan7-Dec-05 1:07
professionalkakan7-Dec-05 1:07 
GeneralRe: How to add and remove a toolbar? Pin
Franken7-Dec-05 1:12
Franken7-Dec-05 1:12 
QuestionIs there any way to verify a HHOOK? Pin
Abin6-Dec-05 23:49
Abin6-Dec-05 23:49 
AnswerRe: Is there any way to verify a HHOOK? Pin
S. Senthil Kumar7-Dec-05 1:15
S. Senthil Kumar7-Dec-05 1:15 
=[ Abin ]= wrote:
When this happens, my application does not know, so it would still wait for messages(which will never come anymore) from the target window.

You actually can detect eviction of the hook by the OS. From this[^] article,
"Windows sends a WH_CANCELJOURNAL Windows message when it evicts the hook. The trouble is, the message doesn't have a Windows handle, i.e., it is not directed at any window, so how do we get to know about it? By now, the answer should be obvious, use another systemwide hook, this time a Windows Message Hook (idHook = WH_GETMESSAGE). This hook will get called whenever any Windows application calls GetMessage or PeekMessage, so we can catch WH_CANCELJOURNAL there and inform our UI that recording/playback has been interrupted."
If you want source code, you can take a look at the linked article.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Is there any way to verify a HHOOK? Pin
Abin7-Dec-05 1:43
Abin7-Dec-05 1:43 
GeneralRe: Is there any way to verify a HHOOK? Pin
Abin7-Dec-05 3:29
Abin7-Dec-05 3:29 
GeneralRe: Is there any way to verify a HHOOK? Pin
S. Senthil Kumar7-Dec-05 4:07
S. Senthil Kumar7-Dec-05 4:07 
GeneralRe: Is there any way to verify a HHOOK? Pin
Blake Miller7-Dec-05 5:06
Blake Miller7-Dec-05 5:06 
GeneralRe: Is there any way to verify a HHOOK? Pin
S. Senthil Kumar7-Dec-05 5:24
S. Senthil Kumar7-Dec-05 5:24 
GeneralRe: Is there any way to verify a HHOOK? Pin
Blake Miller7-Dec-05 5:34
Blake Miller7-Dec-05 5:34 
QuestionColor processing Pin
Dk_20006-Dec-05 23:42
Dk_20006-Dec-05 23:42 
AnswerRe: Color processing Pin
Matt Godbolt7-Dec-05 1:55
Matt Godbolt7-Dec-05 1:55 
AnswerRe: Color processing Pin
Chris Losinger7-Dec-05 2:13
professionalChris Losinger7-Dec-05 2:13 
QuestionPorting from WIN32 to MAC: HELP Pin
vishix16-Dec-05 23:17
vishix16-Dec-05 23:17 
QuestionDocumentation in VC++ Pin
vikas amin6-Dec-05 23:11
vikas amin6-Dec-05 23:11 
AnswerRe: Documentation in VC++ Pin
Cedric Moonen6-Dec-05 23:19
Cedric Moonen6-Dec-05 23:19 
AnswerRe: Documentation in VC++ Pin
G. Steudtel7-Dec-05 0:54
G. Steudtel7-Dec-05 0:54 
GeneralRe: Documentation in VC++ Pin
toxcct7-Dec-05 0:58
toxcct7-Dec-05 0:58 
GeneralRe: Documentation in VC++ Pin
G. Steudtel7-Dec-05 0:58
G. Steudtel7-Dec-05 0:58 
AnswerRe: Documentation in VC++ Pin
peterchen7-Dec-05 1:02
peterchen7-Dec-05 1:02 
GeneralRe: Documentation in VC++ Pin
vikas amin7-Dec-05 3:06
vikas amin7-Dec-05 3:06 

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.