Click here to Skip to main content
14,602,723 members

C / C++ / MFC

 
GeneralRe: mfc LoadBitmap hangs my application... Pin
_Flaviu16-Apr-20 7:21
Member_Flaviu16-Apr-20 7:21 
GeneralRe: mfc LoadBitmap hangs my application... Pin
charlieg16-Apr-20 9:47
Membercharlieg16-Apr-20 9:47 
GeneralRe: mfc LoadBitmap hangs my application... Pin
charlieg16-Apr-20 10:27
Membercharlieg16-Apr-20 10:27 
GeneralRe: mfc LoadBitmap hangs my application... Pin
leon de boer16-Apr-20 16:37
Memberleon de boer16-Apr-20 16:37 
GeneralRe: mfc LoadBitmap hangs my application... Pin
charlieg17-Apr-20 9:43
Membercharlieg17-Apr-20 9:43 
QuestionWindows CBT Hooks Pin
Richard Andrew x6414-Apr-20 11:58
professionalRichard Andrew x6414-Apr-20 11:58 
GeneralRe: Windows CBT Hooks Pin
Richard MacCutchan14-Apr-20 21:21
mveRichard MacCutchan14-Apr-20 21:21 
GeneralRe: Windows CBT Hooks Pin
Richard Andrew x6415-Apr-20 4:28
professionalRichard Andrew x6415-Apr-20 4:28 
Thank you Richard. I reread the remarks and I see that you are correct.
Quote:
However, because a 32-bit application must run the hook code, the system executes the hook in the hooking app's context; specifically, on the thread that called SetWindowsHookEx. This means that the hooking application must continue to pump messages or it might block the normal functioning of the 64-bit processes.
When I install the hook, I must pass a pointer to the hook callback function. However, that's a pointer that's only valid inside the process space of the application installing the hook. How does it use that pointer to call the correct code inside the address space of the application that is a target of the hook? Confused | :confused:



The difficult we do right away...
...the impossible takes slightly longer.

GeneralRe: Windows CBT Hooks Pin
Richard MacCutchan15-Apr-20 4:57
mveRichard MacCutchan15-Apr-20 4:57 
GeneralRe: Windows CBT Hooks Pin
Richard Andrew x6415-Apr-20 5:49
professionalRichard Andrew x6415-Apr-20 5:49 
GeneralRe: Windows CBT Hooks Pin
Richard MacCutchan15-Apr-20 6:05
mveRichard MacCutchan15-Apr-20 6:05 
GeneralRe: Windows CBT Hooks Pin
Richard Andrew x6415-Apr-20 8:01
professionalRichard Andrew x6415-Apr-20 8:01 
GeneralRe: Windows CBT Hooks Pin
leon de boer16-Apr-20 0:21
Memberleon de boer16-Apr-20 0:21 
GeneralRe: Windows CBT Hooks Pin
Richard Andrew x6416-Apr-20 2:53
professionalRichard Andrew x6416-Apr-20 2:53 
GeneralRe: Windows CBT Hooks Pin
leon de boer16-Apr-20 4:02
Memberleon de boer16-Apr-20 4:02 
GeneralRe: Windows CBT Hooks Pin
Richard Andrew x6416-Apr-20 6:12
professionalRichard Andrew x6416-Apr-20 6:12 
GeneralRe: Windows CBT Hooks Pin
leon de boer16-Apr-20 6:25
Memberleon de boer16-Apr-20 6:25 
QuestionAccessing HDD drive Pin
_Flaviu14-Apr-20 9:32
Member_Flaviu14-Apr-20 9:32 
GeneralRe: Accessing HDD drive Pin
Richard MacCutchan14-Apr-20 21:14
mveRichard MacCutchan14-Apr-20 21:14 
GeneralRe: Accessing HDD drive Pin
_Flaviu16-Apr-20 7:23
Member_Flaviu16-Apr-20 7:23 
GeneralRe: Accessing HDD drive Pin
Richard MacCutchan16-Apr-20 9:28
mveRichard MacCutchan16-Apr-20 9:28 
GeneralRe: Accessing HDD drive Pin
Member 798912216-Apr-20 10:57
MemberMember 798912216-Apr-20 10:57 
GeneralRe: Accessing HDD drive Pin
JudyL_MD17-Apr-20 4:48
MemberJudyL_MD17-Apr-20 4:48 
GeneralRe: Accessing HDD drive Pin
_Flaviu19-Apr-20 2:32
Member_Flaviu19-Apr-20 2:32 
GeneralRe: Accessing HDD drive Pin
Richard MacCutchan19-Apr-20 3:01
mveRichard MacCutchan19-Apr-20 3:01 

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.