#include <Cryptuiapi.h>
#pragma comment(lib, "Cryptui.lib")
CRYPTUI_WIZ_DIGITAL_SIGN_INFO wizSign;
wizSign.dwSize = sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_INFO);
wizSign.dwSubjectChoice = 0;
wizSign.dwSigningCertChoice = 0;
wizSign.dwAdditionalCertChoice = 0;
wizSign.pSignExtInfo = NULL;
CryptUIWizDigitalSign(0, GetDesktopWindow(), L"我的签名向导", &wizSign, NULL);
更多信息参见Platform SDK: Cryptography