With CAPICOM deprecated, MSDN suggests using the mssign32.dll functions. There are two fundamental problems with this:
-
No example code whatsoever is provided.
No header file is provided.
Well, at least I can do something about #2. Here is a minimal version of a header file for mssign32.dll. It includes direct function declarations, as well as function pointer typedefs.
The function pointers can be used with LoadLibrary/GetProcAddress to dynamically call the functions, as in:
SignerSignPtr pSignerSign = (SignerSignPtr)GetProcAddress(hModule, "SignerSign");