Revision: 36679
Updated Code
at November 24, 2010 23:44 by jwielandt
Updated Code
#include <Windows.h>
//define a functor
typedef void __stdcall (*F_functionName)(int arg1, int arg2);
HANDLE handle = LoadLibrary("LibraryName.dll");
if(handle == NULL) {
//error
}
//assing value to funtor
F_functionName functionName = (F_functionName ) GetProcAddress(handle, "FunctionName");
//use function
functionName(1,2);
//free library when nog longer needed
FreeLibrary(handle);
Revision: 36678
Updated Code
at November 24, 2010 22:25 by jwielandt
Updated Code
#include <Windows.h>
//define a functor
typedef DWORD __stdcall (*F_functionName)(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen);
HANDLE handle = LoadLibrary("LibraryName.dll");
if(handle == NULL) {
//error
}
//assing value to funtor
F_functionName functionName = (Dev_GetAdaptersInfo) GetProcAddress(handle, "FunctionName");
//free library when nog longer needed
FreeLibrary(handle);
Revision: 36677
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 24, 2010 21:32 by jwielandt
Initial Code
//define a functor
typedef DWORD __stdcall (*F_functionName)(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen);
HANDLE handle;
if((long)(handle = LoadLibrary("LibraryName.dll") < 32) {
//error
}
//assing value to funtor
F_functionName functionName = (Dev_GetAdaptersInfo) GetProcAddress(handle, "FunctionName");
//free library when nog longer needed
FreeLibrary(handle);
Initial URL
Initial Description
Initial Title
load library windows
Initial Tags
Initial Language
C++