Click or drag to resize

LocalHookGetProcAddress Method

Will return the address for a given DLL export symbol. The specified module has to be loaded into the current process space and also export the given method.

Namespace:  EasyHook
Assembly:  EasyHook (in EasyHook.dll) Version: 2.7.6684.0 (2.7.6684.0)
public static IntPtr GetProcAddress(
	string InModule,
	string InSymbolName


Type: SystemString
A system DLL name like "kernel32.dll" or a full qualified path to any DLL.
Type: SystemString
An exported symbol name like "CreateFileW".

Return Value

Type: IntPtr
The entry point for the given API method.
DllNotFoundException The given module is not loaded into the current process.
MissingMethodException The given module does not export the desired method.
If you wonder how to get native entry points in a managed environment, this is the anwser. You will only be able to hook native code from a managed environment if you have access to a method like this, returning the native entry point. Please note that you will also hook any managed code, which of course ultimately relies on the native windows API!
See Also