SOL9 2.0 Sample: CertExportDialog

SOL9 2.0 Samples

1 Screenshot

1.1 CertExportDialog1


1.2 CertExportDialog2


1.3 CertExportDialog3


1.4 CertExportDialog4



2 Source code

/*
 * CertExportDialog.cpp 
 * Copyright (c) 2009 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: 11 Nov 2009

Copyright (c) 2009 Antillia.com ALL RIGHTS RESERVED.