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; }
Public Shared ReadOnly Property CallingManagedModule As Assembly
Get
public:
static property Assembly^ CallingManagedModule {
Assembly^ get ();
}
static member CallingManagedModule : Assembly with get
Property Value
Type:
AssemblyRemarks
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