Click or drag to resize

HookRuntimeInfoCallingUnmanagedModule Property

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

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

Property Value

Type: ProcessModule
Remarks
The problem is that if the calling module is a NET assembly and invokes the hook through a P-Invoke binding, you will get "mscorwks.dll" as calling module and not the NET assembly. This is only an example but I think you got the idea. To solve this issue, refer to UnmanagedStackTrace and ManagedStackTrace!
See Also