Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IHTMLServices Pin
Member 284578422-Oct-08 9:01
Member 284578422-Oct-08 9:01 
GeneralRe: IHTMLServices Pin
Mark Salsbery22-Oct-08 9:15
Mark Salsbery22-Oct-08 9:15 
GeneralRe: IHTMLServices Pin
led mike22-Oct-08 11:05
led mike22-Oct-08 11:05 
AnswerRe: IHTMLServices Pin
led mike22-Oct-08 8:49
led mike22-Oct-08 8:49 
QuestionCache management implementation for C++ Pin
Ahmed Charfeddine22-Oct-08 6:16
Ahmed Charfeddine22-Oct-08 6:16 
AnswerRe: Cache management implementation for C++ Pin
James R. Twine22-Oct-08 7:57
James R. Twine22-Oct-08 7:57 
GeneralRe: Cache management implementation for C++ Pin
Ahmed Charfeddine23-Oct-08 23:17
Ahmed Charfeddine23-Oct-08 23:17 
Questionhow to set journal hook? Pin
anminxin22-Oct-08 5:21
anminxin22-Oct-08 5:21 
hello everyone,

I want to write a program to record the event of keyboard, sb advise me to use journal hook.
//g_hLogHook is a global hook
if (g_hLogHook==NULL)
g_hLogHook=SetWindowsHookEx(WH_JOURNALRECORD, (HOOKPROC)JournalLogProc,AfxGetInstanceHandle(),0);
It will not return until I press Ctrl-Alt-Del to cancel the hook. It then has a valid handle for g_hLogHook.I'm at a loss as to why this hangs?

can anyone give me a answer?

ps:msdn
Unlike most other global hook procedures, the JournalRecordProc and JournalPlaybackProc hook procedures are always called in the context of the thread that set the hook.

now,now that JournalProc is always called in the context of the thread that set the hook,why all the threads on the desktop are hanging before I press Ctrl-Alt-Del ?

thanks for your answer
AnswerRe: how to set journal hook? Pin
Rajesh R Subramanian22-Oct-08 20:07
professionalRajesh R Subramanian22-Oct-08 20:07 
Questionsimple interpreter Pin
harcaype22-Oct-08 4:56
harcaype22-Oct-08 4:56 
AnswerRe: simple interpreter Pin
Mark Salsbery22-Oct-08 5:26
Mark Salsbery22-Oct-08 5:26 
GeneralRe: simple interpreter Pin
CPallini22-Oct-08 9:26
mveCPallini22-Oct-08 9:26 
AnswerRe: simple interpreter Pin
CPallini22-Oct-08 9:30
mveCPallini22-Oct-08 9:30 
AnswerRe: simple interpreter Pin
David Crow22-Oct-08 10:02
David Crow22-Oct-08 10:02 
GeneralRe: simple interpreter Pin
harcaype23-Oct-08 2:10
harcaype23-Oct-08 2:10 
QuestionRe: simple interpreter [modified] Pin
David Crow23-Oct-08 2:54
David Crow23-Oct-08 2:54 
AnswerRe: simple interpreter Pin
harcaype23-Oct-08 4:23
harcaype23-Oct-08 4:23 
QuestionControl outgoing TCP/IP connections Pin
od@ananzi.co.za22-Oct-08 4:23
od@ananzi.co.za22-Oct-08 4:23 
AnswerRe: Control outgoing TCP/IP connections Pin
Richard Andrew x6422-Oct-08 18:00
professionalRichard Andrew x6422-Oct-08 18:00 
Questioncovert / cast int to char* with a twist Pin
Programm3r22-Oct-08 4:22
Programm3r22-Oct-08 4:22 
AnswerRe: covert / cast int to char* with a twist Pin
James R. Twine22-Oct-08 5:08
James R. Twine22-Oct-08 5:08 
AnswerRe: covert / cast int to char* with a twist Pin
Mark Salsbery22-Oct-08 5:12
Mark Salsbery22-Oct-08 5:12 
QuestionHo wto close running application before uninstallation?? Pin
tarunclassic22-Oct-08 3:46
tarunclassic22-Oct-08 3:46 
AnswerRe: Ho wto close running application before uninstallation?? Pin
Richard Andrew x6422-Oct-08 17:58
professionalRichard Andrew x6422-Oct-08 17:58 
GeneralRe: How to close running application before uninstallation?? Pin
tarunclassic22-Oct-08 19:54
tarunclassic22-Oct-08 19:54 

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.