Programmatically verify signed dll's C++

c++, digital-signature, dll, visual-studio-2010

Solution

You can use WinVerifyTrust function. Dlls and PE are almost same except for 2 to 3 bytes difference in there header. A full code example is here (also applicable to dll).

Problem

I have a signed dll and want to verify its signature before I use it. my application is written by C++. How can I get programmatically the dll's signature?

Original source