I am looking for a copy of CryptUI.h file which used to be in Win32 Platform SDK, but was replaced with CryptUIAPI.h. I need it to call CryptUIDlgViewCertificate which is undocumented. The function displays a dialoging showing details about certificates. Microsoft recommends CryptUIDlgViewContext but it's available only on XP and Windows Server 2003. There is another recently documented fuction CertViewProperties, but that works only on XP, Windows 2000 Pro adn Server. CryptUIDlgViewCertificate works on all of these platforms as well as Windows 98+. I could use CAPICOM but that will add 450K to the footprint just to display a cert. I could also write my own cert display dialog, but that involves more work than I am willing to put into this.
So…Help!
If you don't understand what I wrote above, don't feel bad. This stuff is so geeky that not even Google can find enough material to fill a page.
Update – 2003/10/21 01:36PM PST
Michel Gallant came to my rescue with his open source KeyPal utility which has the necessary declarations – Gallant indeed! Declartations are in C# so I'll translate it to C and post it here for future reference. I might even wrap all this into a DLL for others. I still haven't figured out how to coax these APIs to display a cert chain like the way Acrobat 6 does it.