cryptuiapi.h revision 930b5f872e89407f445d4000d4e4aaecaa6a0998
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Copyright (C) 2008 Juan Lang
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This library is free software; you can redistribute it and/or
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * modify it under the terms of the GNU Lesser General Public
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * License as published by the Free Software Foundation; either
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * version 2.1 of the License, or (at your option) any later version.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This library is distributed in the hope that it will be useful,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Lesser General Public License for more details.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * You should have received a copy of the GNU Lesser General Public
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * License along with this library; if not, write to the Free Software
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * a choice of LGPL license versions is made available with the language indicating
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * of the LGPL is applied is otherwise unspecified.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncextern "C" {
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI CryptUIDlgViewContext(DWORD dwContextType, LPVOID pvContext,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync HWND hwnd, LPCWSTR pwszTitle, DWORD dwFlags, LPVOID pvReserved);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for dwDontUseColumn */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_SELECT_INTENDEDUSE_COLUMN 0x00000004
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_SELECT_FRIENDLYNAME_COLUMN 0x00000008
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncPCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateFromStore(
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync HCERTSTORE hCertStore, HWND hwnd, LPCWSTR pwszTitle, LPCWSTR pwszDisplayString,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync DWORD dwDontUseColumn, DWORD dwFlags, LPVOID pvReserved);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CRYPTUI_CERT_MGR_STRUCT's dwFlags */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_CERT_MGR_STRUCT, *PCRYPTUI_CERT_MGR_STRUCT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const struct _CRYPTUI_CERT_MGR_STRUCT *PCCRYPTUI_CERT_MGR_STRUCT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI CryptUIDlgCertMgr(PCCRYPTUI_CERT_MGR_STRUCT pCryptUICertMgr);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef BOOL (WINAPI *PFNCFILTERPROC)(PCCERT_CONTEXT pCertContext,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync BOOL *pfInitialSelectedCert, void *pvCallbackData);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_INITDIALOG_STRUCT, *PCRYPTUI_INITDIALOG_STRUCT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CRYPTUI_VIEWCERTIFICATE_STRUCT's dwFlags */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_ENABLE_REVOCATION_CHECKING 0x00000800
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT 0x00004000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN 0x00008000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT CRYPTUI_ENABLE_REVOCATION_CHECKING
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_VIEWCERTIFICATE_STRUCTA, *PCRYPTUI_VIEWCERTIFICATE_STRUCTA;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_VIEWCERTIFICATE_STRUCTA *PCCRYPTUI_VIEWCERTIFICATE_STRUCTA;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_VIEWCERTIFICATE_STRUCTW, *PCRYPTUI_VIEWCERTIFICATE_STRUCTW;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_VIEWCERTIFICATE_STRUCTW *PCCRYPTUI_VIEWCERTIFICATE_STRUCTW;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_VIEWCERTIFICATE_STRUCT WINELIB_NAME_AW(CRYPTUI_VIEWCERTIFICATE_STRUCT)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define PCCRYPTUI_VIEWCERTIFICATE_STRUCT WINELIB_NAME_AW(PCCRYPTUI_VIEWCERTIFICATE_STRUCT)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_VIEWCERTIFICATE_STRUCTA pCertViewInfo, BOOL *pfPropertiesChanged);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, BOOL *pfPropertiesChanged);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CryptUIDlgViewCertificate WINELIB_NAME_AW(CryptUIDlgViewCertificate)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO *
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO pPvkFileInfo;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO *
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO *
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO pSignBlobInfo;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO pSigningCertStore;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO pSigningCertPvkInfo;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO pSignExtInfo;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_DIGITAL_SIGN_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_DIGITAL_SIGN_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT, *PCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT *PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CryptUIWizDigitalSign's dwFlags */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_DIGITAL_SIGN_EXCLUDE_PAGE_HASHES 0x00000002
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_DIGITAL_SIGN_INCLUDE_PAGE_HASHES 0x00000004
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI CryptUIWizDigitalSign(DWORD dwFlags, HWND hwndParent,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO pDigitalSignInfo,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT *ppSignContext);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CRYPTUI_WIZ_EXPORT_INFO's dwSubjectChoice */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY 5
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_EXPORT_INFO, *PCRYPTUI_WIZ_EXPORT_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_EXPORT_INFO *PCCRYPTUI_WIZ_EXPORT_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO's dwExportFormat */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_EXPORT_FORMAT_SERIALIZED_CERT_STORE 5
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO, *PCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI CryptUIWizExport(DWORD dwFlags, HWND hwndParent,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo, void *pvoid);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CRYPTUI_WIZ_IMPORT_SRC_INFO's dwSubjectChoice */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_WIZ_IMPORT_SRC_INFO, *PCRYPTUI_WIZ_IMPORT_SRC_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef const CRYPTUI_WIZ_IMPORT_SRC_INFO *PCCRYPTUI_WIZ_IMPORT_SRC_INFO;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CryptUIWizImport's dwFlags */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE 0x00010000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE 0x00100000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER 0x00200000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define CRYPTUI_WIZ_IMPORT_REMOTE_DEST_STORE 0x00400000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Definitions missing from PSDK's cryptuiapi.h, but documented on MSDN. */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef BOOL (WINAPI *PFNCCERTDISPLAYPROC)(PCCERT_CONTEXT pCertContext,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* Values for CRYPTUI_SELECTCERTIFICATE_STRUCT's dwFlags */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_SELECTCERTIFICATE_STRUCTA, *PCRYPTUI_SELECTCERTIFICATE_STRUCTA;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_SELECTCERTIFICATE_STRUCTW, *PCRYPTUI_SELECTCERTIFICATE_STRUCTW;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_VIEWSIGNERINFO_STRUCTA, *PCRYPTUI_VIEWSIGNERINFO_STRUCTA;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync} CRYPTUI_VIEWSIGNERINFO_STRUCTW, *PCRYPTUI_VIEWSIGNERINFO_STRUCTW;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncBOOL WINAPI CryptUIDlgViewSignerInfoA(CRYPTUI_VIEWSIGNERINFO_STRUCTA *pcvsi);