This sample shows how the verification of the signature of a file (like an exe or a dll) can be performed using WinTrust API.
Here is the source : VerifyExeSignature.cpp
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.