Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# LoadLibrary from byte[]

I'd like to call LoadLibrary() to load a native DLL from an embedded resource. I know how to get the byte[] for the embedded resource, but I do not know how to call LoadLibrary() and GetProcAddress() for a byte[]

like image 853
Adam Tegen Avatar asked Jun 18 '26 19:06

Adam Tegen


1 Answers

You could look at this tutorial, but as has been previously stated, this is not trivial:

http://www.joachim-bauch.de/tutorials/loading-a-dll-from-memory/

like image 91
John Koerner Avatar answered Jun 21 '26 09:06

John Koerner