SOL9 Sample: CertExportDialog
|
1 Screenshot
2 Source code
/*
* CertExportDialog.cpp
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2009/03/31
#include <sol/crypt/CryptServiceProvider.h>
#include <sol/crypt/CertSystemStore.h>
#include <sol/crypt/CertSelectionDialog.h>
#include <sol/crypt/CertExportDialog.h>
#include <sol/Locale.h>
void _tmain(int argc, TCHAR** argv)
{
try {
CryptServiceProvider csp;
CertSystemStore store(csp, _T("CA"));
CertSelectionDialog seldlg(store);
PCCERT_CONTEXT pContext = seldlg.show();
CertExportDialog exdlg;
exdlg.doExport(pContext);
} catch (...) {
printf("Exception: %x\n", GetLastError());
}
}
Last modified: 2 May 2016
Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.