title: WinVerifyTrust to check for a specific signature?
body: <p>I'm implementing a process elevation helper for Windows. It's a program that will run in elevated mode and launch other programs with administrator privileges without displaying additional UAC prompts. For security reasons, I want to make sure only binaries that are digitally signed with my company's Authenticode key can be executed.</p>
  
  <p>The <a href="http://msdn.microsoft.com/en-us/library/aa388208(VS.85).aspx" rel="noreferrer">WinVerifyTrust</a> function gets me halfway there, but it only ensures that a binary is signed by <em>some</em> key that is part of Microsoft's chain of trust. Is there a relatively simple way to perform the Authenticode verification AND ensure that it is signed by our private key?</p>