SOL9 Sample: CertPhysicalStore

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * CertPhysicalStore.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


//2009/03/13

#include <sol/crypt/CertPhysicalStore.h>
#include <sol/Locale.h>

void _tmain(int argc, TCHAR** argv)
{
  try {
    Locale locale;
    _tprintf(_T("CertPhysicalStore:Root\n"));

    CertPhysicalStore root;
    _tprintf(_T("\nPhysicalStore:Root\n"));
    root.enumStore(_T("Root"), CERT_SYSTEM_STORE_CURRENT_USER);

    CertPhysicalStore ca;
    _tprintf(_T("\nPhysicalStore:CA\n"));
    ca.enumStore(_T("CA"), CERT_SYSTEM_STORE_CURRENT_USER);

    CertPhysicalStore my;
    _tprintf(_T("\nPhysicalStore:MY\n"));
    my.enumStore(_T("MY"), CERT_SYSTEM_STORE_CURRENT_USER);

  } catch (int err) {
    printf("Exception: %x\n", err);
  }
}


Last modified: 2 May 2016

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