Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting NULL value from 'Win32_LogonSession' through WMI Pin
Supriya Tonape29-Oct-08 13:12
Supriya Tonape29-Oct-08 13:12 
GeneralRe: Getting NULL value from 'Win32_LogonSession' through WMI Pin
etaig15-Jun-10 22:33
etaig15-Jun-10 22:33 
QuestionHow to use CompletionPort to exchange data between two threads Pin
Electronic7522-Oct-08 9:38
Electronic7522-Oct-08 9:38 
AnswerRe: How to use CompletionPort to exchange data between two threads Pin
Roger Stoltz22-Oct-08 22:19
Roger Stoltz22-Oct-08 22:19 
Question[Message Deleted] Pin
Member 284578422-Oct-08 7:32
Member 284578422-Oct-08 7:32 
AnswerRe: IHTMLServices Pin
Mark Salsbery22-Oct-08 8:33
Mark Salsbery22-Oct-08 8:33 
General[Message Deleted] Pin
Member 284578422-Oct-08 8:42
Member 284578422-Oct-08 8:42 
JokeRe: IHTMLServices Pin
Mark Salsbery22-Oct-08 8:47
Mark Salsbery22-Oct-08 8:47 
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 

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.