1001010.com

one zero zero one zero one zero dot com
one hundred ten ten dot com
binary representation of ascii 'J' (74) dot com

home code projects photos wiki resumé tombstone ?
Individual Entry Archive: The Experiments of Jason De Arte - Evil Lawn Dart Master, Toy Maker and Professional Software Engineer
« prev: Simpsons Hit and Run
» next: CAPICOM has Been Located!
Code | Monday
CAPICOM & accurate MSDN entries... Where are you?
Posted by Jason on Monday October 04, 2004 07:10 PM  |  Permalink

Maybe this is just a 0.0001% thing, but it always seems to happen to me.

Over the weekend I was investigating the whole authenticode thing, I just needed a simple method for testing signed exe's under win9x thru XP. Looking at MSDN, it directs me to WinVerifyTrust in WINTRUST.DLL. Unfortunately msdn also reports that it's available only under WinNT/2k/XP.

Thus my search began - and was quickly answered by CAPICOM.DLL, a redistributable that's available for Win9x thru XP! It's a com library that exposes a large number of interfaces for managing authenticode signatures. The most important of which is the ability to check the signature of a signed file!

Unfortunately ALL the links on msdn to get the redistributable are dead. In a few places it's mentioned that it was moved to the platform sdk - but that's only a half truth: the platform sdk includes source samples and not the redistrib!

When I went to the QA lab to start digging thru the msdn archives, I got a random thought "what if msdn is a lying bitch? It's not like it's never been inaccurate".
So I turned on the oldest Win9x box I could find - win98.
I did a search for WINTRUST.DLL
I found it in the windows directory
and I sent it to my main workstation
Would you believe that it not only has "WinVerifyTrust" it also has "WinVerifyTrustEx".

This leads me to a single, unwaivering conclusion: MSDN's level of accuracy is similar in spirit to that of the hitchhikers guide to the galaxy. Which in my technical world that requires highly accurate API documentation - does indeed make it a lying bitch.
On the bright side, there are a few MS KB tech support entries that reference wintrust.dll, it seems to get installed by IE4.x and later on Win95

Oh well. Why is it that in moments like these, the phrase "Thank you Microsoft, May I have another?" comes to mind?