Load plugin from memory?

Is it possible to load a file into the memory and then load that memoryblock as a VST plugin? 

Well, you could hack around inside the VST loading code to make it get the DLL from memory rather than directly from a file, but if you already have it as a file, then why not just load that? Or if you're loading the DLL content from some other source, an easier trick would be to write it to a temp file and load that as a DLL..

Yeah, I planned to hack the code if you won't come up with some magical way, no other way I guess :)


I'm currently saving it to a temporary file. It's mainly in order to allow automatic background updates for my application. Loading the VST locks the file (on Windows, using some DAWs), thus making modifying it tricky.