A family of Microsoft relational database management systems designed for ease of use.
When converting a 32-bit API to 64-bit API you need to make sure you change the right handlers and variables to be able to get it to work. Especially the DataTypes. More info on that you will find in below thread:
http://www.jkp-ads.com/articles/apideclarations.asp
A big help is to download the Office 2010 Help Files: Win32API_PtrSafe with 64-bit Support in here:
http://www.microsoft.com/download/en/confirmation.aspx?displaylang=en&id=9970
Also good thread for the code itself you can find here (note it's in VB):
http://www.rgagnon.com/examples/cryptoapi_in_vb.txt
Hope this helps,
Daniel