The MappedDllToMsl function converts a memory-mapped DLL to a MSL.
LPVOID MappedDllToMsl(
LPVOID lpDllOffset, // pointer to memory-mapped DLL
LPDWORD lpSize // pointer to a DWORD which receives the MSL file size
);
Parameters
- lpDllOffset
- Points to the first byte of a loaded DLL file. DLL file can be for example loaded using MapViewOfFile.
- lpSize
- Points to a DWORD which will receive the size of resulting MSL file.
Return Values
If the function succeeds, the return value is a pointer to MSL file with size lpSize.
If it fails, the return value is NULL.