#define NOMINMAX // otherwise windows.h #defines min and max as macros #include #include #include namespace WinExportCertificateAndKey { struct ExportCertificateAndKeyArgs { DWORD store_type; std::wstring sys_store_name; bool use_thumbprint; std::vector thumbprint; std::wstring subject; std::wstring password_buf; bool require_private_key; }; std::vector ExportCertificateAndKey(const ExportCertificateAndKeyArgs& args); std::vector> ExportAllCertificates( const std::wstring& sys_store_name, DWORD store_type); }