[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Wrong declaration of CRYPT_RETURN_HWND in CSPDK
From:       Hans Schupp <schupp () SECUDE ! COM>
Date:       2001-11-30 13:17:22
[Download RAW message or body]


Hello anyone responsible at Microsoft,

after I found out that the wincrypt.h in the current CSPDK (from June
2001) is newer than the one in the Platform SDK I got, I replaced the
#include <wincrypt.h> with an include for the "SDKINC/wincrypt.h" plus
"SDKINC/cspdk.h".
I had to change some of my function declarations because the prototypes
changed slightly. One change is in the structure VTableProvStruc, where
the FuncReturnhWnd member was a FARPROC before and is now a function
pointer type called CRYPT_RETURN_HWND.
After compiling and testing the new CSP I experienced a crash when
calling that FuncReturnhWnd and I quickly found that FARPROC is declared
as WINAPI, while CRYPT_RETURN_HWND is not. After chaning the declaration
of CRYPT_RETURN_HWND to WINAPI, my provider runs stable again.

My conclusion is: the declaration of CRYPT_RETURN_HWND is wrong.

Can you please fix that for the next release?
Will this "new" wincrypt.h/cspdk.h appear in one of the next Platform
SDKs (and thus spare me some fumbling to include my own version)?

Thanks, Hans

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic