Load DLL From Memory
This is a static link library which allows you to load a dynamic link library from memory without storing it on the hard-disk first.
Download Link |
Purchase Full Version
Function List
DD_LoadLibrary
DD_GetProcAddress
DD_FreeLibrary
DD_LoadLibrary Function
Loads the specified DLL from memory. This function does not check the IMAGE_DOS_SIGNATURE and the IMAGE_NT_SIGNATURE, so you can erase the 'MZ'and 'PE' signature in your DLL file.
Syntax
HMODULE WINAPI DD_LoadLibrary(
LPVOID lpRawDll,
HANDLE hInstance
);
Parameters
lpRawDll [in]
Raw data of the DLL file.
hInstance [in]
The handle of the module which contains the DLL resources, sometimes it is necessary. If the DLL contains necessary resources, then you need to export the resources, and add them into the project.
Return value
If the function succeeds, the return value is a handle to the module.
If the function fails, the return value is NULL.
DD_GetProcAddress Function
Retrieves the address of an exported function or variable from the DLL.
Syntax
FARPROC WINAPI DD_GetProcAddress(
HMODULE hModule,
LPCSTR lpProcName
);
Parameters
hModule [in]
A handle to the DLL module, The DD_LoadLibrary function returns this handle.
lpProcName [in]
The function or variable name, or the function's ordinal value. If this parameter is an ordinal value, it must be in the low-order word; the high-order word must be zero.
Return value
If the function succeeds, the return value is the address of the exported function or variable.
If the function fails, the return value is NULL.
DD_FreeLibrary Function
Frees the loaded library (DLL) module.
Syntax
BOOL WINAPI DD_FreeLibrary(
HMODULE hModule
);
Parameters
hModule [in]
A handle to the DLL module, The DD_LoadLibrary function returns this handle.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
System Requirements
Supported OS: 64-bit & 32-bit of Windows 10/8/7/Vista/XP/ 2008(R2)/2003(R2)/2000/98
Price $79.95, Size 131 KB