locked
Programmatically verify the signature of exe/dll file RRS feed

  • Question

  • Are there any .NET Framework Class Libraries for doing signature verification for exe/dll files?
    Monday, December 4, 2017 7:25 AM

Answers

All replies

  • You can pInvoke WinVerifyTrust
    • Marked as answer by AkashVijayaraj Tuesday, December 12, 2017 8:00 AM
    Monday, December 4, 2017 8:29 AM
  • Hi AkashVijayaraj,

    Thank you for posting here.

    Please refer to the thread in SO. Copy paste the code and call the last function: internal static uint WinVerifyTrust(string fileName). A returned 0 means it's signed.

    https://stackoverflow.com/questions/4345962/verify-whether-an-executable-is-signed-or-not-signtool-used-to-sign-that-exe

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, December 6, 2017 1:17 AM
  • Hi AkashVijayaraj,

    Any update? If your question has been solved, please mark the solution as answer to close the thread. This will make answer searching easier in the forum and be beneficial to community members as well.

    Best Regards,
    Wendy

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Monday, December 11, 2017 6:32 AM