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)
Syntax public static IntPtr GetProcAddress(
string InModule,
string InSymbolName
)
Public Shared Function GetProcAddress (
InModule As String,
InSymbolName As String
) As IntPtr
public:
static IntPtr GetProcAddress(
String^ InModule,
String^ InSymbolName
)
static member GetProcAddress :
InModule : string *
InSymbolName : string -> IntPtr
Parameters
- InModule
- Type: SystemString
A system DLL name like "kernel32.dll" or a full qualified path to any DLL. - InSymbolName
- Type: SystemString
An exported symbol name like "CreateFileW".
Return Value
Type:
IntPtrThe entry point for the given API method.
Exceptions Remarks
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