GetProcAddress Function
Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
Lets say I have something like this:
DLL should be win32 standard dll or .net dll.
How can I run the exported function if I have the address of it through GetProcAddress().If someone could supply some code it would be great.
Like if dll has this code:
I have this code:
Dim moduleHandle As Integer = LoadLibrary("C:\myDLL.dll")
GetProcAddress(moduleHandle, "Show")
I need to add something but I don't know what :/. I may also need to send some parameters but lets leave that for later.
Thx for reading.
Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
Lets say I have something like this:
VB.NET:
Dim moduleHandle As Integer = LoadLibrary("C:\myDLL.dll")
Dim methodName As String = ""
GetProcAddress(moduleHandle, methodName)
DLL should be win32 standard dll or .net dll.
How can I run the exported function if I have the address of it through GetProcAddress().If someone could supply some code it would be great.
Like if dll has this code:
VB.NET:
Function Show()
Msgbox("It works!")
End Function
I have this code:
Dim moduleHandle As Integer = LoadLibrary("C:\myDLL.dll")
GetProcAddress(moduleHandle, "Show")
I need to add something but I don't know what :/. I may also need to send some parameters but lets leave that for later.
Thx for reading.