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