ReactOS 0.4.15-dev-7674-gc0b4db1
cryptuiapi.h File Reference
#include <wintrust.h>
#include <wincrypt.h>
#include <prsht.h>
#include <pshpack8.h>
#include <poppack.h>
Include dependency graph for cryptuiapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CRYPTUI_CERT_MGR_STRUCT
 
struct  tagCRYPTUI_INITDIALOG_STRUCT
 
struct  tagCRYPTUI_VIEWCERTIFICATE_STRUCTA
 
struct  tagCRYPTUI_VIEWCERTIFICATE_STRUCTW
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_INFO
 
struct  _CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT
 
struct  _CRYPTUI_WIZ_EXPORT_INFO
 
struct  _CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO
 
struct  _CRYPTUI_WIZ_IMPORT_SUBJECT_INFO
 
struct  _CRYPTUI_SELECTCERTIFICATE_STRUCTA
 
struct  _CRYPTUI_SELECTCERTIFICATE_STRUCTW
 
struct  tagCRYPTUI_VIEWSIGNERINFO_STRUCTA
 
struct  tagCRYPTUI_VIEWSIGNERINFO_STRUCTW
 

Macros

#define CRYPTUI_SELECT_ISSUEDTO_COLUMN   0x00000001
 
#define CRYPTUI_SELECT_ISSUEDBY_COLUMN   0x00000002
 
#define CRYPTUI_SELECT_INTENDEDUSE_COLUMN   0x00000004
 
#define CRYPTUI_SELECT_FRIENDLYNAME_COLUMN   0x00000008
 
#define CRYPTUI_SELECT_LOCATION_COLUMN   0x00000010
 
#define CRYPTUI_SELECT_EXPIRATION_COLUMN   0x00000020
 
#define CRYPTUI_CERT_MGR_PUBLISHER_TAB   0x00000004
 
#define CRYPTUI_CERT_MGR_TAB_MASK   0x0000000f
 
#define CRYPTUI_CERT_MGR_SINGLE_TAB_FLAG   0x00008000
 
#define CRYPTUI_HIDE_HIERARCHYPAGE   0x00000001
 
#define CRYPTUI_HIDE_DETAILPAGE   0x00000002
 
#define CRYPTUI_DISABLE_EDITPROPERTIES   0x00000004
 
#define CRYPTUI_ENABLE_EDITPROPERTIES   0x00000008
 
#define CRYPTUI_DISABLE_ADDTOSTORE   0x00000010
 
#define CRYPTUI_ENABLE_ADDTOSTORE   0x00000020
 
#define CRYPTUI_ACCEPT_DECLINE_STYLE   0x00000040
 
#define CRYPTUI_IGNORE_UNTRUSTED_ROOT   0x00000080
 
#define CRYPTUI_DONT_OPEN_STORES   0x00000100
 
#define CRYPTUI_ONLY_OPEN_ROOT_STORE   0x00000200
 
#define CRYPTUI_WARN_UNTRUSTED_ROOT   0x00000400
 
#define CRYPTUI_ENABLE_REVOCATION_CHECKING   0x00000800
 
#define CRYPTUI_WARN_REMOTE_TRUST   0x00001000
 
#define CRYPTUI_DISABLE_EXPORT   0x00002000
 
#define CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT   0x00004000
 
#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN   0x00008000
 
#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT   CRYPTUI_ENABLE_REVOCATION_CHECKING
 
#define CRYPTUI_DISABLE_HTMLLINK   0x00010000
 
#define CRYPTUI_DISABLE_ISSUERSTATEMENT   0x00020000
 
#define CRYPTUI_VIEWCERTIFICATE_STRUCT   WINELIB_NAME_AW(CRYPTUI_VIEWCERTIFICATE_STRUCT)
 
#define PCCRYPTUI_VIEWCERTIFICATE_STRUCT   WINELIB_NAME_AW(PCCRYPTUI_VIEWCERTIFICATE_STRUCT)
 
#define CryptUIDlgViewCertificate   WINELIB_NAME_AW(CryptUIDlgViewCertificate)
 
#define CRYPTUI_WIZ_NO_UI   0x00000001
 
#define CRYPTUI_WIZ_DIGITAL_SIGN_EXCLUDE_PAGE_HASHES   0x00000002
 
#define CRYPTUI_WIZ_DIGITAL_SIGN_INCLUDE_PAGE_HASHES   0x00000004
 
#define CRYPTUI_WIZ_EXPORT_CERT_CONTEXT   1
 
#define CRYPTUI_WIZ_EXPORT_CTL_CONTEXT   2
 
#define CRYPTUI_WIZ_EXPORT_CRL_CONTEXT   3
 
#define CRYPTUI_WIZ_EXPORT_CERT_STORE   4
 
#define CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY   5
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_CRL   6
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_CTL   7
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_DER   1
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_PFX   2
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7   3
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_BASE64   4
 
#define CRYPTUI_WIZ_EXPORT_FORMAT_SERIALIZED_CERT_STORE   5
 
#define CRYPTUI_WIZ_IMPORT_SUBJECT_FILE   1
 
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT   2
 
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT   3
 
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT   4
 
#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE   5
 
#define CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE   0x00010000
 
#define CRYPTUI_WIZ_IMPORT_ALLOW_CERT   0x00020000
 
#define CRYPTUI_WIZ_IMPORT_ALLOW_CRL   0x00040000
 
#define CRYPTUI_WIZ_IMPORT_ALLOW_CTL   0x00080000
 
#define CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE   0x00100000
 
#define CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER   0x00200000
 
#define CRYPTUI_WIZ_IMPORT_REMOTE_DEST_STORE   0x00400000
 
#define CRYPTUI_SELECTCERT_MULTISELECT   0x00000001
 

Typedefs

typedef struct _CRYPTUI_CERT_MGR_STRUCT CRYPTUI_CERT_MGR_STRUCT
 
typedef struct _CRYPTUI_CERT_MGR_STRUCTPCRYPTUI_CERT_MGR_STRUCT
 
typedef const struct _CRYPTUI_CERT_MGR_STRUCTPCCRYPTUI_CERT_MGR_STRUCT
 
typedef BOOL(WINAPIPFNCFILTERPROC) (PCCERT_CONTEXT pCertContext, BOOL *pfInitialSelectedCert, void *pvCallbackData)
 
typedef struct tagCRYPTUI_INITDIALOG_STRUCT CRYPTUI_INITDIALOG_STRUCT
 
typedef struct tagCRYPTUI_INITDIALOG_STRUCTPCRYPTUI_INITDIALOG_STRUCT
 
typedef struct tagCRYPTUI_VIEWCERTIFICATE_STRUCTA CRYPTUI_VIEWCERTIFICATE_STRUCTA
 
typedef struct tagCRYPTUI_VIEWCERTIFICATE_STRUCTAPCRYPTUI_VIEWCERTIFICATE_STRUCTA
 
typedef const CRYPTUI_VIEWCERTIFICATE_STRUCTAPCCRYPTUI_VIEWCERTIFICATE_STRUCTA
 
typedef struct tagCRYPTUI_VIEWCERTIFICATE_STRUCTW CRYPTUI_VIEWCERTIFICATE_STRUCTW
 
typedef struct tagCRYPTUI_VIEWCERTIFICATE_STRUCTWPCRYPTUI_VIEWCERTIFICATE_STRUCTW
 
typedef const CRYPTUI_VIEWCERTIFICATE_STRUCTWPCCRYPTUI_VIEWCERTIFICATE_STRUCTW
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFOPCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFOPCCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFOPCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFOPCCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFOPCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFOPCCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFOPCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFOPCCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFOPCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFOPCCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_INFO CRYPTUI_WIZ_DIGITAL_SIGN_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_INFOPCRYPTUI_WIZ_DIGITAL_SIGN_INFO
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_INFOPCCRYPTUI_WIZ_DIGITAL_SIGN_INFO
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT
 
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXTPCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT
 
typedef const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXTPCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT
 
typedef struct _CRYPTUI_WIZ_EXPORT_INFO CRYPTUI_WIZ_EXPORT_INFO
 
typedef struct _CRYPTUI_WIZ_EXPORT_INFOPCRYPTUI_WIZ_EXPORT_INFO
 
typedef const CRYPTUI_WIZ_EXPORT_INFOPCCRYPTUI_WIZ_EXPORT_INFO
 
typedef struct _CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO
 
typedef struct _CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFOPCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO
 
typedef const CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFOPCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO
 
typedef struct _CRYPTUI_WIZ_IMPORT_SUBJECT_INFO CRYPTUI_WIZ_IMPORT_SRC_INFO
 
typedef struct _CRYPTUI_WIZ_IMPORT_SUBJECT_INFOPCRYPTUI_WIZ_IMPORT_SRC_INFO
 
typedef const CRYPTUI_WIZ_IMPORT_SRC_INFOPCCRYPTUI_WIZ_IMPORT_SRC_INFO
 
typedef BOOL(WINAPIPFNCCERTDISPLAYPROC) (PCCERT_CONTEXT pCertContext, HWND hWndSelCertDlg, void *pvCallbackData)
 
typedef struct _CRYPTUI_SELECTCERTIFICATE_STRUCTA CRYPTUI_SELECTCERTIFICATE_STRUCTA
 
typedef struct _CRYPTUI_SELECTCERTIFICATE_STRUCTAPCRYPTUI_SELECTCERTIFICATE_STRUCTA
 
typedef const CRYPTUI_SELECTCERTIFICATE_STRUCTAPCCRYPTUI_SELECTCERTIFICATE_STRUCTA
 
typedef struct _CRYPTUI_SELECTCERTIFICATE_STRUCTW CRYPTUI_SELECTCERTIFICATE_STRUCTW
 
typedef struct _CRYPTUI_SELECTCERTIFICATE_STRUCTWPCRYPTUI_SELECTCERTIFICATE_STRUCTW
 
typedef const CRYPTUI_SELECTCERTIFICATE_STRUCTWPCCRYPTUI_SELECTCERTIFICATE_STRUCTW
 
typedef struct tagCRYPTUI_VIEWSIGNERINFO_STRUCTA CRYPTUI_VIEWSIGNERINFO_STRUCTA
 
typedef struct tagCRYPTUI_VIEWSIGNERINFO_STRUCTAPCRYPTUI_VIEWSIGNERINFO_STRUCTA
 
typedef struct tagCRYPTUI_VIEWSIGNERINFO_STRUCTW CRYPTUI_VIEWSIGNERINFO_STRUCTW
 
typedef struct tagCRYPTUI_VIEWSIGNERINFO_STRUCTWPCRYPTUI_VIEWSIGNERINFO_STRUCTW
 

Functions

BOOL WINAPI CryptUIDlgViewContext (DWORD dwContextType, LPVOID pvContext, HWND hwnd, LPCWSTR pwszTitle, DWORD dwFlags, LPVOID pvReserved)
 
PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateFromStore (HCERTSTORE hCertStore, HWND hwnd, LPCWSTR pwszTitle, LPCWSTR pwszDisplayString, DWORD dwDontUseColumn, DWORD dwFlags, LPVOID pvReserved)
 
BOOL WINAPI CryptUIDlgCertMgr (PCCRYPTUI_CERT_MGR_STRUCT pCryptUICertMgr)
 
BOOL WINAPI CryptUIDlgViewCertificateA (PCCRYPTUI_VIEWCERTIFICATE_STRUCTA pCertViewInfo, BOOL *pfPropertiesChanged)
 
BOOL WINAPI CryptUIDlgViewCertificateW (PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, BOOL *pfPropertiesChanged)
 
BOOL WINAPI CryptUIWizDigitalSign (DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO pDigitalSignInfo, PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT *ppSignContext)
 
BOOL WINAPI CryptUIWizFreeDigitalSignContext (PCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT pSignContext)
 
BOOL WINAPI CryptUIWizExport (DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo, void *pvoid)
 
BOOL WINAPI CryptUIWizImport (DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc, HCERTSTORE hDestCertStore)
 
PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateA (PCCRYPTUI_SELECTCERTIFICATE_STRUCTA pcsc)
 
PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateW (PCCRYPTUI_SELECTCERTIFICATE_STRUCTW pcsc)
 
BOOL WINAPI CryptUIDlgViewSignerInfoA (CRYPTUI_VIEWSIGNERINFO_STRUCTA *pcvsi)
 
BOOL WINAPI CryptUIDlgViewSignerInfoW (CRYPTUI_VIEWSIGNERINFO_STRUCTW *pcvsi)
 

Macro Definition Documentation

◆ CRYPTUI_ACCEPT_DECLINE_STYLE

#define CRYPTUI_ACCEPT_DECLINE_STYLE   0x00000040

Definition at line 79 of file cryptuiapi.h.

◆ CRYPTUI_CERT_MGR_PUBLISHER_TAB

#define CRYPTUI_CERT_MGR_PUBLISHER_TAB   0x00000004

Definition at line 47 of file cryptuiapi.h.

◆ CRYPTUI_CERT_MGR_SINGLE_TAB_FLAG

#define CRYPTUI_CERT_MGR_SINGLE_TAB_FLAG   0x00008000

Definition at line 49 of file cryptuiapi.h.

◆ CRYPTUI_CERT_MGR_TAB_MASK

#define CRYPTUI_CERT_MGR_TAB_MASK   0x0000000f

Definition at line 48 of file cryptuiapi.h.

◆ CRYPTUI_DISABLE_ADDTOSTORE

#define CRYPTUI_DISABLE_ADDTOSTORE   0x00000010

Definition at line 77 of file cryptuiapi.h.

◆ CRYPTUI_DISABLE_EDITPROPERTIES

#define CRYPTUI_DISABLE_EDITPROPERTIES   0x00000004

Definition at line 75 of file cryptuiapi.h.

◆ CRYPTUI_DISABLE_EXPORT

#define CRYPTUI_DISABLE_EXPORT   0x00002000

Definition at line 86 of file cryptuiapi.h.

◆ CRYPTUI_DISABLE_HTMLLINK

#define CRYPTUI_DISABLE_HTMLLINK   0x00010000

Definition at line 90 of file cryptuiapi.h.

◆ CRYPTUI_DISABLE_ISSUERSTATEMENT

#define CRYPTUI_DISABLE_ISSUERSTATEMENT   0x00020000

Definition at line 91 of file cryptuiapi.h.

◆ CRYPTUI_DONT_OPEN_STORES

#define CRYPTUI_DONT_OPEN_STORES   0x00000100

Definition at line 81 of file cryptuiapi.h.

◆ CRYPTUI_ENABLE_ADDTOSTORE

#define CRYPTUI_ENABLE_ADDTOSTORE   0x00000020

Definition at line 78 of file cryptuiapi.h.

◆ CRYPTUI_ENABLE_EDITPROPERTIES

#define CRYPTUI_ENABLE_EDITPROPERTIES   0x00000008

Definition at line 76 of file cryptuiapi.h.

◆ CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN

#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN   0x00008000

Definition at line 88 of file cryptuiapi.h.

◆ CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT

#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT   CRYPTUI_ENABLE_REVOCATION_CHECKING

Definition at line 89 of file cryptuiapi.h.

◆ CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT

#define CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT   0x00004000

Definition at line 87 of file cryptuiapi.h.

◆ CRYPTUI_ENABLE_REVOCATION_CHECKING

#define CRYPTUI_ENABLE_REVOCATION_CHECKING   0x00000800

Definition at line 84 of file cryptuiapi.h.

◆ CRYPTUI_HIDE_DETAILPAGE

#define CRYPTUI_HIDE_DETAILPAGE   0x00000002

Definition at line 74 of file cryptuiapi.h.

◆ CRYPTUI_HIDE_HIERARCHYPAGE

#define CRYPTUI_HIDE_HIERARCHYPAGE   0x00000001

Definition at line 73 of file cryptuiapi.h.

◆ CRYPTUI_IGNORE_UNTRUSTED_ROOT

#define CRYPTUI_IGNORE_UNTRUSTED_ROOT   0x00000080

Definition at line 80 of file cryptuiapi.h.

◆ CRYPTUI_ONLY_OPEN_ROOT_STORE

#define CRYPTUI_ONLY_OPEN_ROOT_STORE   0x00000200

Definition at line 82 of file cryptuiapi.h.

◆ CRYPTUI_SELECT_EXPIRATION_COLUMN

#define CRYPTUI_SELECT_EXPIRATION_COLUMN   0x00000020

Definition at line 40 of file cryptuiapi.h.

◆ CRYPTUI_SELECT_FRIENDLYNAME_COLUMN

#define CRYPTUI_SELECT_FRIENDLYNAME_COLUMN   0x00000008

Definition at line 38 of file cryptuiapi.h.

◆ CRYPTUI_SELECT_INTENDEDUSE_COLUMN

#define CRYPTUI_SELECT_INTENDEDUSE_COLUMN   0x00000004

Definition at line 37 of file cryptuiapi.h.

◆ CRYPTUI_SELECT_ISSUEDBY_COLUMN

#define CRYPTUI_SELECT_ISSUEDBY_COLUMN   0x00000002

Definition at line 36 of file cryptuiapi.h.

◆ CRYPTUI_SELECT_ISSUEDTO_COLUMN

#define CRYPTUI_SELECT_ISSUEDTO_COLUMN   0x00000001

Definition at line 35 of file cryptuiapi.h.

◆ CRYPTUI_SELECT_LOCATION_COLUMN

#define CRYPTUI_SELECT_LOCATION_COLUMN   0x00000010

Definition at line 39 of file cryptuiapi.h.

◆ CRYPTUI_SELECTCERT_MULTISELECT

#define CRYPTUI_SELECTCERT_MULTISELECT   0x00000001

Definition at line 345 of file cryptuiapi.h.

◆ CRYPTUI_VIEWCERTIFICATE_STRUCT

#define CRYPTUI_VIEWCERTIFICATE_STRUCT   WINELIB_NAME_AW(CRYPTUI_VIEWCERTIFICATE_STRUCT)

Definition at line 145 of file cryptuiapi.h.

◆ CRYPTUI_WARN_REMOTE_TRUST

#define CRYPTUI_WARN_REMOTE_TRUST   0x00001000

Definition at line 85 of file cryptuiapi.h.

◆ CRYPTUI_WARN_UNTRUSTED_ROOT

#define CRYPTUI_WARN_UNTRUSTED_ROOT   0x00000400

Definition at line 83 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_DIGITAL_SIGN_EXCLUDE_PAGE_HASHES

#define CRYPTUI_WIZ_DIGITAL_SIGN_EXCLUDE_PAGE_HASHES   0x00000002

Definition at line 247 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_DIGITAL_SIGN_INCLUDE_PAGE_HASHES

#define CRYPTUI_WIZ_DIGITAL_SIGN_INCLUDE_PAGE_HASHES   0x00000004

Definition at line 248 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_CERT_CONTEXT

#define CRYPTUI_WIZ_EXPORT_CERT_CONTEXT   1

Definition at line 258 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_CERT_STORE

#define CRYPTUI_WIZ_EXPORT_CERT_STORE   4

Definition at line 261 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY

#define CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY   5

Definition at line 262 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_CRL_CONTEXT

#define CRYPTUI_WIZ_EXPORT_CRL_CONTEXT   3

Definition at line 260 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_CTL_CONTEXT

#define CRYPTUI_WIZ_EXPORT_CTL_CONTEXT   2

Definition at line 259 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_BASE64

#define CRYPTUI_WIZ_EXPORT_FORMAT_BASE64   4

Definition at line 286 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_CRL

#define CRYPTUI_WIZ_EXPORT_FORMAT_CRL   6

Definition at line 263 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_CTL

#define CRYPTUI_WIZ_EXPORT_FORMAT_CTL   7

Definition at line 264 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_DER

#define CRYPTUI_WIZ_EXPORT_FORMAT_DER   1

Definition at line 283 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_PFX

#define CRYPTUI_WIZ_EXPORT_FORMAT_PFX   2

Definition at line 284 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7

#define CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7   3

Definition at line 285 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_EXPORT_FORMAT_SERIALIZED_CERT_STORE

#define CRYPTUI_WIZ_EXPORT_FORMAT_SERIALIZED_CERT_STORE   5

Definition at line 287 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_ALLOW_CERT

#define CRYPTUI_WIZ_IMPORT_ALLOW_CERT   0x00020000

Definition at line 329 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_ALLOW_CRL

#define CRYPTUI_WIZ_IMPORT_ALLOW_CRL   0x00040000

Definition at line 330 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_ALLOW_CTL

#define CRYPTUI_WIZ_IMPORT_ALLOW_CTL   0x00080000

Definition at line 331 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE

#define CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE   0x00010000

Definition at line 328 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_REMOTE_DEST_STORE

#define CRYPTUI_WIZ_IMPORT_REMOTE_DEST_STORE   0x00400000

Definition at line 334 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT

#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT   2

Definition at line 306 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE

#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE   5

Definition at line 309 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT

#define CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT   4

Definition at line 308 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT

#define CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT   3

Definition at line 307 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_SUBJECT_FILE

#define CRYPTUI_WIZ_IMPORT_SUBJECT_FILE   1

Definition at line 305 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER

#define CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER   0x00200000

Definition at line 333 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE

#define CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE   0x00100000

Definition at line 332 of file cryptuiapi.h.

◆ CRYPTUI_WIZ_NO_UI

#define CRYPTUI_WIZ_NO_UI   0x00000001

Definition at line 246 of file cryptuiapi.h.

◆ CryptUIDlgViewCertificate

#define CryptUIDlgViewCertificate   WINELIB_NAME_AW(CryptUIDlgViewCertificate)

Definition at line 152 of file cryptuiapi.h.

◆ PCCRYPTUI_VIEWCERTIFICATE_STRUCT

#define PCCRYPTUI_VIEWCERTIFICATE_STRUCT   WINELIB_NAME_AW(PCCRYPTUI_VIEWCERTIFICATE_STRUCT)

Definition at line 146 of file cryptuiapi.h.

Typedef Documentation

◆ CRYPTUI_CERT_MGR_STRUCT

◆ CRYPTUI_INITDIALOG_STRUCT

◆ CRYPTUI_SELECTCERTIFICATE_STRUCTA

◆ CRYPTUI_SELECTCERTIFICATE_STRUCTW

◆ CRYPTUI_VIEWCERTIFICATE_STRUCTA

◆ CRYPTUI_VIEWCERTIFICATE_STRUCTW

◆ CRYPTUI_VIEWSIGNERINFO_STRUCTA

◆ CRYPTUI_VIEWSIGNERINFO_STRUCTW

◆ CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO

◆ CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO

◆ CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT

◆ CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO

◆ CRYPTUI_WIZ_DIGITAL_SIGN_INFO

◆ CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO

◆ CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO

◆ CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO

◆ CRYPTUI_WIZ_EXPORT_INFO

◆ CRYPTUI_WIZ_IMPORT_SRC_INFO

◆ PCCRYPTUI_CERT_MGR_STRUCT

◆ PCCRYPTUI_SELECTCERTIFICATE_STRUCTA

◆ PCCRYPTUI_SELECTCERTIFICATE_STRUCTW

◆ PCCRYPTUI_VIEWCERTIFICATE_STRUCTA

◆ PCCRYPTUI_VIEWCERTIFICATE_STRUCTW

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO

◆ PCCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO

◆ PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO

◆ PCCRYPTUI_WIZ_EXPORT_INFO

◆ PCCRYPTUI_WIZ_IMPORT_SRC_INFO

◆ PCRYPTUI_CERT_MGR_STRUCT

◆ PCRYPTUI_INITDIALOG_STRUCT

◆ PCRYPTUI_SELECTCERTIFICATE_STRUCTA

◆ PCRYPTUI_SELECTCERTIFICATE_STRUCTW

◆ PCRYPTUI_VIEWCERTIFICATE_STRUCTA

◆ PCRYPTUI_VIEWCERTIFICATE_STRUCTW

◆ PCRYPTUI_VIEWSIGNERINFO_STRUCTA

◆ PCRYPTUI_VIEWSIGNERINFO_STRUCTW

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_INFO

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO

◆ PCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO

◆ PCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO

◆ PCRYPTUI_WIZ_EXPORT_INFO

◆ PCRYPTUI_WIZ_IMPORT_SRC_INFO

◆ PFNCCERTDISPLAYPROC

typedef BOOL(WINAPI * PFNCCERTDISPLAYPROC) (PCCERT_CONTEXT pCertContext, HWND hWndSelCertDlg, void *pvCallbackData)

Definition at line 341 of file cryptuiapi.h.

◆ PFNCFILTERPROC

typedef BOOL(WINAPI * PFNCFILTERPROC) (PCCERT_CONTEXT pCertContext, BOOL *pfInitialSelectedCert, void *pvCallbackData)

Definition at line 63 of file cryptuiapi.h.

Function Documentation

◆ CryptUIDlgCertMgr()

BOOL WINAPI CryptUIDlgCertMgr ( PCCRYPTUI_CERT_MGR_STRUCT  pCryptUICertMgr)

Definition at line 1311 of file main.c.

1312{
1313 TRACE("(%p)\n", pCryptUICertMgr);
1314
1315 if (pCryptUICertMgr->dwSize != sizeof(CRYPTUI_CERT_MGR_STRUCT))
1316 {
1317 WARN("unexpected size %d\n", pCryptUICertMgr->dwSize);
1319 return FALSE;
1320 }
1322 pCryptUICertMgr->hwndParent, cert_mgr_dlg_proc, (LPARAM)pCryptUICertMgr);
1323 return TRUE;
1324}
#define WARN(fmt,...)
Definition: debug.h:112
#define IDD_CERT_MGR
Definition: cryptuires.h:194
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static HINSTANCE hInstance
Definition: main.c:45
static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
Definition: main.c:1119
#define SetLastError(x)
Definition: compat.h:752
#define TRACE(s)
Definition: solgame.cpp:4
LONG_PTR LPARAM
Definition: windef.h:208
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)

Referenced by display_cert_manager(), and OpenPersonalTrustDBDialog().

◆ CryptUIDlgSelectCertificateA()

PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateA ( PCCRYPTUI_SELECTCERTIFICATE_STRUCTA  pcsc)

Definition at line 7537 of file main.c.

7538{
7541 LPWSTR title = NULL, display_str = NULL;
7542 PROPSHEETPAGEW *pages = NULL;
7543
7544 TRACE("%p\n", pcsc);
7545
7546 if (pcsc->dwSize != sizeof(*pcsc) && pcsc->dwSize != sizeof(*pcsc) - sizeof(HCERTSTORE))
7547 {
7548 WARN("unexpected size %d\n", pcsc->dwSize);
7550 return NULL;
7551 }
7552 memcpy(&selCertInfo, pcsc, pcsc->dwSize);
7553 if (pcsc->szTitle)
7554 {
7555 if (!(title = strdupAtoW( pcsc->szTitle ))) goto error;
7556 selCertInfo.szTitle = title;
7557 }
7558 if (pcsc->szDisplayString)
7559 {
7560 if (!(display_str = strdupAtoW( pcsc->szDisplayString ))) goto error;
7561 selCertInfo.szDisplayString = display_str;
7562 }
7563 if (pcsc->cPropSheetPages)
7564 {
7566 if (!pages)
7567 goto error;
7568 selCertInfo.rgPropSheetPages = pages;
7569 }
7570 cert = CryptUIDlgSelectCertificateW(&selCertInfo);
7571error:
7573 HeapFree(GetProcessHeap(), 0, display_str);
7574 if (pcsc->cPropSheetPages)
7576 return cert;
7577}
#define NULL
Definition: types.h:112
PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateW(PCCRYPTUI_SELECTCERTIFICATE_STRUCTW pcsc)
Definition: main.c:7438
static void free_prop_sheet_pages(PROPSHEETPAGEW *pages, DWORD num)
Definition: main.c:7459
static WCHAR * strdupAtoW(const char *str)
Definition: main.c:65
static PROPSHEETPAGEW * prop_sheet_pages_AtoW(LPCPROPSHEETPAGEA pages, DWORD num)
Definition: main.c:7480
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
#define error(str)
Definition: mkdosfs.c:1605
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static BYTE cert[]
Definition: msg.c:1437
static char title[]
Definition: ps.c:92
LPCPROPSHEETPAGEA rgPropSheetPages
Definition: cryptuiapi.h:363
LPCPROPSHEETPAGEW rgPropSheetPages
Definition: cryptuiapi.h:385
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ CryptUIDlgSelectCertificateFromStore()

PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateFromStore ( HCERTSTORE  hCertStore,
HWND  hwnd,
LPCWSTR  pwszTitle,
LPCWSTR  pwszDisplayString,
DWORD  dwDontUseColumn,
DWORD  dwFlags,
LPVOID  pvReserved 
)

◆ CryptUIDlgSelectCertificateW()

PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateW ( PCCRYPTUI_SELECTCERTIFICATE_STRUCTW  pcsc)

Definition at line 7438 of file main.c.

7439{
7440 struct SelectCertParam param;
7441
7442 TRACE("%p\n", pcsc);
7443
7444 if (pcsc->dwSize != sizeof(*pcsc) && pcsc->dwSize != sizeof(*pcsc) - sizeof(HCERTSTORE))
7445 {
7446 WARN("unexpected size %d\n", pcsc->dwSize);
7448 return NULL;
7449 }
7451 FIXME("ignoring CRYPTUI_SELECTCERT_MULTISELECT\n");
7452 param.pcsc = pcsc;
7453 param.cert = NULL;
7456 return param.cert;
7457}
#define FIXME(fmt,...)
Definition: debug.h:111
#define CRYPTUI_SELECTCERT_MULTISELECT
Definition: cryptuiapi.h:345
#define IDD_SELECT_CERT
Definition: cryptuires.h:202
static LRESULT CALLBACK select_cert_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
Definition: main.c:7286
GLfloat param
Definition: glext.h:5796
PCCRYPTUI_SELECTCERTIFICATE_STRUCTW pcsc
Definition: main.c:7282

Referenced by CryptUIDlgSelectCertificateA(), and CryptUIDlgSelectCertificateFromStore().

◆ CryptUIDlgViewCertificateA()

BOOL WINAPI CryptUIDlgViewCertificateA ( PCCRYPTUI_VIEWCERTIFICATE_STRUCTA  pCertViewInfo,
BOOL pfPropertiesChanged 
)

Definition at line 1673 of file main.c.

1675{
1677 LPWSTR title = NULL;
1678 BOOL ret;
1679
1680 TRACE("(%p, %p)\n", pCertViewInfo, pfPropertiesChanged);
1681
1682 memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
1683 if (pCertViewInfo->szTitle)
1684 {
1685 int len = MultiByteToWideChar(CP_ACP, 0, pCertViewInfo->szTitle, -1,
1686 NULL, 0);
1687
1688 title = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
1689 if (title)
1690 {
1691 MultiByteToWideChar(CP_ACP, 0, pCertViewInfo->szTitle, -1, title,
1692 len);
1693 viewInfo.szTitle = title;
1694 }
1695 else
1696 {
1697 ret = FALSE;
1698 goto error;
1699 }
1700 }
1701 if (pCertViewInfo->cPropSheetPages)
1702 {
1703 FIXME("ignoring additional prop sheet pages\n");
1704 viewInfo.cPropSheetPages = 0;
1705 }
1706 ret = CryptUIDlgViewCertificateW(&viewInfo, pfPropertiesChanged);
1708error:
1709 return ret;
1710}
BOOL WINAPI CryptUIDlgViewCertificateW(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, BOOL *pfPropertiesChanged)
Definition: main.c:4413
#define CP_ACP
Definition: compat.h:109
#define HeapAlloc
Definition: compat.h:733
#define MultiByteToWideChar
Definition: compat.h:110
unsigned int BOOL
Definition: ntddk_ex.h:94
GLenum GLsizei len
Definition: glext.h:6722
int ret
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ CryptUIDlgViewCertificateW()

BOOL WINAPI CryptUIDlgViewCertificateW ( PCCRYPTUI_VIEWCERTIFICATE_STRUCTW  pCertViewInfo,
BOOL pfPropertiesChanged 
)

Definition at line 4413 of file main.c.

4415{
4416 static GUID generic_cert_verify = WINTRUST_ACTION_GENERIC_CERT_VERIFY;
4418 WINTRUST_DATA wvt;
4420 BOOL ret = FALSE;
4421 CRYPT_PROVIDER_SGNR *signer;
4422 CRYPT_PROVIDER_CERT *provCert = NULL;
4423
4424 TRACE("(%p, %p)\n", pCertViewInfo, pfPropertiesChanged);
4425
4426 if (pCertViewInfo->dwSize != sizeof(CRYPTUI_VIEWCERTIFICATE_STRUCTW))
4427 {
4429 return FALSE;
4430 }
4431 /* Make a local copy in case we have to call WinVerifyTrust ourselves */
4432 memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
4433 if (!pCertViewInfo->u.hWVTStateData)
4434 {
4435 memset(&wvt, 0, sizeof(wvt));
4436 wvt.cbStruct = sizeof(wvt);
4437 wvt.dwUIChoice = WTD_UI_NONE;
4438 if (viewInfo.dwFlags &
4446 memset(&cert, 0, sizeof(cert));
4447 cert.cbStruct = sizeof(cert);
4448 cert.psCertContext = (CERT_CONTEXT *)viewInfo.pCertContext;
4449 cert.chStores = viewInfo.cStores;
4450 cert.pahStores = viewInfo.rghStores;
4451 wvt.u.pCert = &cert;
4453 WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
4454 viewInfo.u.pCryptProviderData =
4457 (CRYPT_PROVIDER_DATA *)viewInfo.u.pCryptProviderData, 0, FALSE, 0);
4458 provCert = WTHelperGetProvCertFromChain(signer, 0);
4459 ret = TRUE;
4460 }
4461 else
4462 {
4463 viewInfo.u.pCryptProviderData =
4467 viewInfo.idxSigner, viewInfo.fCounterSigner,
4468 viewInfo.idxCounterSigner);
4469 provCert = WTHelperGetProvCertFromChain(signer, viewInfo.idxCert);
4470 ret = TRUE;
4471 }
4472 if (ret)
4473 {
4474 ret = show_cert_dialog(&viewInfo, provCert, pfPropertiesChanged);
4475 if (!pCertViewInfo->u.hWVTStateData)
4476 {
4478 WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
4479 }
4480 }
4481 return ret;
4482}
#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
Definition: cryptuiapi.h:89
#define CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT
Definition: cryptuiapi.h:87
#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN
Definition: cryptuiapi.h:88
static BOOL show_cert_dialog(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, CRYPT_PROVIDER_CERT *provCert, BOOL *pfPropertiesChanged)
Definition: main.c:4308
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define memset(x, y, z)
Definition: compat.h:39
#define WINTRUST_ACTION_GENERIC_CERT_VERIFY
Definition: softpub.h:24
struct WINTRUST_CERT_INFO_ * pCert
Definition: wintrust.h:111
DWORD dwUnionChoice
Definition: wintrust.h:104
DWORD dwStateAction
Definition: wintrust.h:114
HANDLE hWVTStateData
Definition: wintrust.h:115
DWORD fdwRevocationChecks
Definition: wintrust.h:103
DWORD cbStruct
Definition: wintrust.h:99
DWORD dwUIChoice
Definition: wintrust.h:102
CRYPT_PROVIDER_DATA const * pCryptProviderData
Definition: cryptuiapi.h:129
#define WTD_REVOCATION_CHECK_CHAIN
Definition: wintrust.h:134
#define WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
Definition: wintrust.h:135
#define WTD_STATEACTION_CLOSE
Definition: wintrust.h:124
#define WTD_STATEACTION_VERIFY
Definition: wintrust.h:123
#define WTD_UI_NONE
Definition: wintrust.h:84
#define WTD_CHOICE_CERT
Definition: wintrust.h:95
#define WTD_REVOCATION_CHECK_END_CERT
Definition: wintrust.h:133
CRYPT_PROVIDER_CERT *WINAPI WTHelperGetProvCertFromChain(CRYPT_PROVIDER_SGNR *pSgnr, DWORD idxCert)
CRYPT_PROVIDER_SGNR *WINAPI WTHelperGetProvSignerFromChain(CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSigner, DWORD idxCounterSigner)
CRYPT_PROVIDER_DATA *WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
LONG WINAPI WinVerifyTrust(HWND hwnd, GUID *ActionID, LPVOID ActionData)

Referenced by CertViewPropertiesW(), CryptExtOpenCERW(), CryptUIDlgViewCertificateA(), CryptUIDlgViewContext(), select_cert_view(), show_dialog_for_selected_cert(), show_selected_cert(), and ShowX509EncodedCertificate().

◆ CryptUIDlgViewContext()

BOOL WINAPI CryptUIDlgViewContext ( DWORD  dwContextType,
LPVOID  pvContext,
HWND  hwnd,
LPCWSTR  pwszTitle,
DWORD  dwFlags,
LPVOID  pvReserved 
)

Definition at line 4487 of file main.c.

4489{
4490 BOOL ret;
4491
4492 TRACE("(%d, %p, %p, %s, %08x, %p)\n", dwContextType, pvContext, hwnd,
4493 debugstr_w(pwszTitle), dwFlags, pvReserved);
4494
4495 switch (dwContextType)
4496 {
4498 {
4500
4501 memset(&viewInfo, 0, sizeof(viewInfo));
4502 viewInfo.dwSize = sizeof(viewInfo);
4503 viewInfo.hwndParent = hwnd;
4504 viewInfo.szTitle = pwszTitle;
4505 viewInfo.pCertContext = pvContext;
4506 ret = CryptUIDlgViewCertificateW(&viewInfo, NULL);
4507 break;
4508 }
4509 default:
4510 FIXME("unimplemented for context type %d\n", dwContextType);
4512 ret = FALSE;
4513 }
4514 return ret;
4515}
#define debugstr_w
Definition: kernel32.h:32
static LPCSTR DWORD void * pvReserved
Definition: str.c:196
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
#define CERT_STORE_CERTIFICATE_CONTEXT
Definition: wincrypt.h:2974
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ CryptUIDlgViewSignerInfoA()

BOOL WINAPI CryptUIDlgViewSignerInfoA ( CRYPTUI_VIEWSIGNERINFO_STRUCTA pcvsi)

Definition at line 7016 of file main.c.

7017{
7018 FIXME("%p: stub\n", pcvsi);
7019 return FALSE;
7020}

◆ CryptUIDlgViewSignerInfoW()

BOOL WINAPI CryptUIDlgViewSignerInfoW ( CRYPTUI_VIEWSIGNERINFO_STRUCTW pcvsi)

◆ CryptUIWizDigitalSign()

BOOL WINAPI CryptUIWizDigitalSign ( DWORD  dwFlags,
HWND  hwndParent,
LPCWSTR  pwszWizardTitle,
PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO  pDigitalSignInfo,
PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT ppSignContext 
)

Definition at line 7600 of file main.c.

7602{
7603 FIXME("%d %p %s %p %p: stub\n", flags, parent, debugstr_w(title), info, context);
7604 return FALSE;
7605}
r parent
Definition: btrfs.c:3010
GLbitfield flags
Definition: glext.h:7161
Definition: http.c:7252

◆ CryptUIWizExport()

BOOL WINAPI CryptUIWizExport ( DWORD  dwFlags,
HWND  hwndParent,
LPCWSTR  pwszWizardTitle,
PCCRYPTUI_WIZ_EXPORT_INFO  pExportInfo,
void pvoid 
)

Definition at line 6988 of file main.c.

6990{
6991 BOOL ret;
6992
6993 TRACE("(%08x, %p, %s, %p, %p)\n", dwFlags, hwndParent,
6994 debugstr_w(pwszWizardTitle), pExportInfo, pvoid);
6995
6996 if (!(dwFlags & CRYPTUI_WIZ_NO_UI))
6998 pvoid);
6999 else
7000 {
7003 CREATE_ALWAYS, 0, NULL);
7004
7006 {
7007 ret = do_export(file, pExportInfo, pvoid, NULL, FALSE);
7009 }
7010 else
7011 ret = FALSE;
7012 }
7013 return ret;
7014}
static HWND hwndParent
Definition: cryptui.c:300
static HWND LPCWSTR pwszWizardTitle
Definition: cryptui.c:301
#define CRYPTUI_WIZ_NO_UI
Definition: cryptuiapi.h:246
static BOOL show_export_ui(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo, const void *pvoid)
Definition: main.c:6831
static BOOL do_export(HANDLE file, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo, PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO pContextInfo, PCRYPT_KEY_PROV_INFO keyProvInfo, BOOL deleteKeys)
Definition: main.c:6692
#define CloseHandle
Definition: compat.h:739
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
#define CreateFileW
Definition: compat.h:741
#define FILE_SHARE_READ
Definition: compat.h:136
#define CREATE_ALWAYS
Definition: disk.h:72
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define GENERIC_WRITE
Definition: nt_native.h:90
Definition: fci.c:127

Referenced by cert_mgr_do_export(), and detail_dlg_proc().

◆ CryptUIWizFreeDigitalSignContext()

BOOL WINAPI CryptUIWizFreeDigitalSignContext ( PCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT  pSignContext)

◆ CryptUIWizImport()

BOOL WINAPI CryptUIWizImport ( DWORD  dwFlags,
HWND  hwndParent,
LPCWSTR  pwszWizardTitle,
PCCRYPTUI_WIZ_IMPORT_SRC_INFO  pImportSrc,
HCERTSTORE  hDestCertStore 
)

Definition at line 5557 of file main.c.

5559{
5560 BOOL ret;
5561
5562 TRACE("(0x%08x, %p, %s, %p, %p)\n", dwFlags, hwndParent, debugstr_w(pwszWizardTitle),
5564
5565 if (pImportSrc &&
5566 pImportSrc->dwSize != sizeof(CRYPTUI_WIZ_IMPORT_SRC_INFO))
5567 {
5569 return FALSE;
5570 }
5571
5572 if (!(dwFlags & CRYPTUI_WIZ_NO_UI))
5575 else if (pImportSrc)
5578 else
5579 {
5580 /* Can't have no UI without specifying source */
5582 ret = FALSE;
5583 }
5584
5585 return ret;
5586}
static HWND LPCWSTR PCCRYPTUI_WIZ_IMPORT_SRC_INFO HCERTSTORE hDestCertStore
Definition: cryptui.c:302
static HWND LPCWSTR PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc
Definition: cryptui.c:301
static BOOL do_import(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc, HCERTSTORE hDestCertStore)
Definition: main.c:5327
static BOOL show_import_ui(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc, HCERTSTORE hDestCertStore)
Definition: main.c:5444

Referenced by cert_mgr_dlg_proc(), and general_dlg_proc().