Jump to content

KernAllocateContextHook: Difference between revisions

From EDM2
Created page with "==Synopsis== APIRET APIENTRY KernAllocateContextHook(PVOID pfHandler,ULONG dummy, PULONG pHook); ==Description== Allocate a new Context hook for use with KernArmHook. ==Para..."
 
Erdmann (talk | contribs)
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Allocate a new Context hook for use with ''KernArmHook''.
==Synopsis==
==Synopsis==
APIRET APIENTRY KernAllocateContextHook(PVOID pfHandler,ULONG dummy, PULONG pHook);
APIRET APIENTRY KernAllocateContextHook(PVOID pfHandler,ULONG flags, PULONG pHook);
 
==Description==
Allocate a new Context hook for use with KernArmHook.


==Parameters==
==Parameters==
;pfHandler:This is the address of the hook handler. Pointer to a 32 bit-function.
;flags:unused, set to 0.
;pHook:The pointer to an ULONG where the hook handle is returned.


pfHandler
Prototype of 32-bit handler function:
    This is the address of the hook handler. This is likely a pointer to a 32 bit function.
VOID APIENTRY fHandler(ULONG data);
dummy
    I don't know why this is there, it is never accessed in the code.
pHook
    The pointer to an ULONG where the hook handle is returned.


==Comments==
==Comments==
See comments for KernArmHook.  
See comments for [[KernArmHook]].


[[Category:The OS/2 API Project]]
[[Category:KEE]]

Latest revision as of 01:50, 6 December 2020

Allocate a new Context hook for use with KernArmHook.

Synopsis

APIRET APIENTRY KernAllocateContextHook(PVOID pfHandler,ULONG flags, PULONG pHook);

Parameters

pfHandler
This is the address of the hook handler. Pointer to a 32 bit-function.
flags
unused, set to 0.
pHook
The pointer to an ULONG where the hook handle is returned.

Prototype of 32-bit handler function: VOID APIENTRY fHandler(ULONG data);

Comments

See comments for KernArmHook.