Jump to content

DevHelp FreeCtxHook: Difference between revisions

From EDM2
Created page with "DevHlp_FreeCtxHook frees a context hook allocated by the DevHlp_AllocateCtxHook. ==Syntax== ===C=== <PRE> DevHelp_FreeCtxHook ( ULONG HookHandle) </PRE> ===Assembler=== <PR..."
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
DevHlp_FreeCtxHook frees a context hook allocated by the DevHlp_AllocateCtxHook.
{{DISPLAYTITLE:DevHelp_FreeCtxHook}}
DevHlp_FreeCtxHook frees a context hook allocated by the [[DevHelp_AllocateCtxHook]].


==Syntax==
==Syntax==
===C===
===C===
<PRE>
DevHelp_FreeCtxHook (ULONG HookHandle)
DevHelp_FreeCtxHook ( ULONG HookHandle)  
</PRE>


===Assembler===
===Assembler===
Line 12: Line 11:
MOV  DL,  DevHlp FreeCtxHook
MOV  DL,  DevHlp FreeCtxHook


CALL  Device Help  
CALL  Device Help
</PRE>
</PRE>
==Parameters==
==Parameters==
===C===
===C===
<PRE>
; ''HookHandle'' ([[ULONG]]) - input : ??
 
</PRE>
 
===Assembler===
<PRE>
 
</PRE>


==Return Code==
==Return Code==
Line 55: Line 47:
                 EAX = Error code
                 EAX = Error code
</PRE>
</PRE>
==Related Functions==


[[Category:DevHlps]]
[[Category:DevHlps]]

Latest revision as of 03:03, 28 May 2025

DevHlp_FreeCtxHook frees a context hook allocated by the DevHelp_AllocateCtxHook.

Syntax

C

DevHelp_FreeCtxHook (ULONG HookHandle)

Assembler

MOV   EAX, Hook_Handle
MOV   DL,  DevHlp FreeCtxHook

CALL   Device Help

Parameters

C

HookHandle (ULONG) - input
??

Return Code

C

Success Indicator 0 if hook successfully freed.

Assembler

C                C Clear if hook freed.
                 EAX = 0
C                C Set if error.
                 EAX = Error code

Remarks

The state of the interrupt flag is not preserved across calls to this DevHlp.

Example Code

C

#include  "dhcalls.h"

USHORT APIENTRY DevHelp_FreeCtxHook ( ULONG HookHandle) 

Assembler

C                C Clear if hook freed.
                 EAX = 0
C                C Set if error.
                 EAX = Error code