Loading DLL from Memory
Suppose that a third-party component is available exclusively as a DLL. Nevertheless, we need to get a single exe file at the output. There are several reasons for that:
- We may need to conceal the fact of using the DLL.
- Or we may need to protect the DLL from tampering by hackers.
With BoxedApp SDK, developer creates a virtual file (for example, using the function BoxedAppSDK_CreateVirtualFile) and writes the contents of the DLL file to that file. It can obtain data from any source: Internet, LAN, database or application resources. Finally, the data can be generated on the fly.
Now you can download the library using the LoadLibrary function, and the application will run just as if the DLL file actually existed on the disk.