Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I strongly name an Unmanaged C++ Dll?

I'm working on a C# application which uses the EasyHook library for DLL Injection. EasyHook requires that any application using it be strongly named. In order to strongly name the application I need to make sure that all the libraries I use are strongly named as well.

This is easy to do for all of my managed libraries, but I also have an unmanaged c++ library which I need to strongly name. After some searching I can't seem to find a way to sign my unmanaged dll, even with the source code. Can this be done, and if so what do I need to do?

Thanks for any suggestions or assistance!

like image 706
Luke Belbina Avatar asked Mar 30 '11 02:03

Luke Belbina


1 Answers

I assume that you're calling the DLL using P/Invoke.

You don't need to (and cannot) strongly-name it.

Strong naming is a .Net concept that applies to managed assemblies (and C++/CLI); it has no meaning for unmanaged libraries.

like image 142
SLaks Avatar answered Sep 26 '22 21:09

SLaks