Hi, I'm trying to use LoadLibrary() in VC++ 6.0 to load a DLL in RAM. In other words, the DLL is not on disk but it's actually loaded into memory as a buffer of bytes. Does anyone know how I can trick LoadLibrary() into using the buffer as a disk file without me having to write the bytes to disk first?
It works fine if I write the bytes to disk, then call LoadLibrary(), the call the function, then FreeLibrary() then immediately delete the file on disk. However, I'd rather I could simply load the HINSTANCE from RAM rather than write to disk.
Thanks,
Nick
It works fine if I write the bytes to disk, then call LoadLibrary(), the call the function, then FreeLibrary() then immediately delete the file on disk. However, I'd rather I could simply load the HINSTANCE from RAM rather than write to disk.
Thanks,
Nick