Click or drag to resize

HookRuntimeInfoCallingManagedModule Property

Determines the first managed module on the current call stack. This is always the module that invoked the hook. Executes in max. 40 micro secounds.

Namespace:  EasyHook
Assembly:  EasyHook (in EasyHook.dll) Version: 2.7.6684.0 (2.7.6684.0)
Syntax
public static Assembly CallingManagedModule { get; }

Property Value

Type: Assembly
Remarks
Imagine your hook targets CreateFile. A NET assembly will now invoke this hook through FileStream, for example. But because System.IO.FileStream invokes the hook, you will get "System.Core" as calling module and not the desired assembly. To solve this issue, refer to UnmanagedStackTrace and ManagedStackTrace!
See Also