ReactOS  0.4.14-dev-838-g99f979d
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 1297 of file main.c.

1298 {
1299  TRACE("(%p)\n", pCryptUICertMgr);
1300 
1301  if (pCryptUICertMgr->dwSize != sizeof(CRYPTUI_CERT_MGR_STRUCT))
1302  {
1303  WARN("unexpected size %d\n", pCryptUICertMgr->dwSize);
1305  return FALSE;
1306  }
1308  pCryptUICertMgr->hwndParent, cert_mgr_dlg_proc, (LPARAM)pCryptUICertMgr);
1309  return TRUE;
1310 }
#define TRUE
Definition: types.h:120
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define WARN(fmt,...)
Definition: debug.h:111
#define E_INVALIDARG
Definition: ddrawi.h:101
LONG_PTR LPARAM
Definition: windef.h:208
#define TRACE(s)
Definition: solgame.cpp:4
#define SetLastError(x)
Definition: compat.h:417
HINSTANCE hInstance
Definition: main.c:36
#define IDD_CERT_MGR
Definition: cryptuires.h:194
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
static LRESULT CALLBACK cert_mgr_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
Definition: main.c:1115

Referenced by display_cert_manager(), and OpenPersonalTrustDBDialog().

◆ CryptUIDlgSelectCertificateA()

PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateA ( PCCRYPTUI_SELECTCERTIFICATE_STRUCTA  pcsc)

Definition at line 7505 of file main.c.

7506 {
7509  LPWSTR title = NULL, display_str = NULL;
7510  PROPSHEETPAGEW *pages = NULL;
7511 
7512  TRACE("%p\n", pcsc);
7513 
7514  if (pcsc->dwSize != sizeof(*pcsc) && pcsc->dwSize != sizeof(*pcsc) - sizeof(HCERTSTORE))
7515  {
7516  WARN("unexpected size %d\n", pcsc->dwSize);
7518  return NULL;
7519  }
7520  memcpy(&selCertInfo, pcsc, pcsc->dwSize);
7521  if (pcsc->szTitle)
7522  {
7523  if (!(title = strdupAtoW( pcsc->szTitle ))) goto error;
7524  selCertInfo.szTitle = title;
7525  }
7526  if (pcsc->szDisplayString)
7527  {
7528  if (!(display_str = strdupAtoW( pcsc->szDisplayString ))) goto error;
7529  selCertInfo.szDisplayString = display_str;
7530  }
7531  if (pcsc->cPropSheetPages)
7532  {
7534  if (!pages)
7535  goto error;
7536  selCertInfo.rgPropSheetPages = pages;
7537  }
7538  cert = CryptUIDlgSelectCertificateW(&selCertInfo);
7539 error:
7540  HeapFree(GetProcessHeap(), 0, title);
7541  HeapFree(GetProcessHeap(), 0, display_str);
7542  if (pcsc->cPropSheetPages)
7543  free_prop_sheet_pages(pages, pcsc->cPropSheetPages);
7544  return cert;
7545 }
#define error(str)
Definition: mkdosfs.c:1605
LPCPROPSHEETPAGEA rgPropSheetPages
Definition: cryptuiapi.h:363
#define WARN(fmt,...)
Definition: debug.h:111
LPCPROPSHEETPAGEW rgPropSheetPages
Definition: cryptuiapi.h:385
static PROPSHEETPAGEW * prop_sheet_pages_AtoW(LPCPROPSHEETPAGEA pages, DWORD num)
Definition: main.c:7448
static void free_prop_sheet_pages(PROPSHEETPAGEW *pages, DWORD num)
Definition: main.c:7427
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
static BYTE cert[]
Definition: msg.c:1437
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
#define SetLastError(x)
Definition: compat.h:417
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateW(PCCRYPTUI_SELECTCERTIFICATE_STRUCTW pcsc)
Definition: main.c:7406
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static char title[]
Definition: ps.c:92
#define HeapFree(x, y, z)
Definition: compat.h:402
static WCHAR * strdupAtoW(const char *str)
Definition: main.c:65

◆ 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 7406 of file main.c.

7407 {
7408  struct SelectCertParam param;
7409 
7410  TRACE("%p\n", pcsc);
7411 
7412  if (pcsc->dwSize != sizeof(*pcsc) && pcsc->dwSize != sizeof(*pcsc) - sizeof(HCERTSTORE))
7413  {
7414  WARN("unexpected size %d\n", pcsc->dwSize);
7416  return NULL;
7417  }
7419  FIXME("ignoring CRYPTUI_SELECTCERT_MULTISELECT\n");
7420  param.pcsc = pcsc;
7421  param.cert = NULL;
7424  return param.cert;
7425 }
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define WARN(fmt,...)
Definition: debug.h:111
#define CRYPTUI_SELECTCERT_MULTISELECT
Definition: cryptuiapi.h:345
static LRESULT CALLBACK select_cert_dlg_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
Definition: main.c:7265
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_INVALIDARG
Definition: ddrawi.h:101
PCCRYPTUI_SELECTCERTIFICATE_STRUCTW pcsc
Definition: main.c:7261
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define TRACE(s)
Definition: solgame.cpp:4
GLfloat param
Definition: glext.h:5796
#define SetLastError(x)
Definition: compat.h:417
HINSTANCE hInstance
Definition: main.c:36
#define IDD_SELECT_CERT
Definition: cryptuires.h:202
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CryptUIDlgSelectCertificateA(), and CryptUIDlgSelectCertificateFromStore().

◆ CryptUIDlgViewCertificateA()

BOOL WINAPI CryptUIDlgViewCertificateA ( PCCRYPTUI_VIEWCERTIFICATE_STRUCTA  pCertViewInfo,
BOOL pfPropertiesChanged 
)

Definition at line 1659 of file main.c.

1661 {
1663  LPWSTR title = NULL;
1664  BOOL ret;
1665 
1666  TRACE("(%p, %p)\n", pCertViewInfo, pfPropertiesChanged);
1667 
1668  memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
1669  if (pCertViewInfo->szTitle)
1670  {
1671  int len = MultiByteToWideChar(CP_ACP, 0, pCertViewInfo->szTitle, -1,
1672  NULL, 0);
1673 
1674  title = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
1675  if (title)
1676  {
1677  MultiByteToWideChar(CP_ACP, 0, pCertViewInfo->szTitle, -1, title,
1678  len);
1679  viewInfo.szTitle = title;
1680  }
1681  else
1682  {
1683  ret = FALSE;
1684  goto error;
1685  }
1686  }
1687  if (pCertViewInfo->cPropSheetPages)
1688  {
1689  FIXME("ignoring additional prop sheet pages\n");
1690  viewInfo.cPropSheetPages = 0;
1691  }
1692  ret = CryptUIDlgViewCertificateW(&viewInfo, pfPropertiesChanged);
1693  HeapFree(GetProcessHeap(), 0, title);
1694 error:
1695  return ret;
1696 }
#define error(str)
Definition: mkdosfs.c:1605
#define CP_ACP
Definition: compat.h:99
unsigned int BOOL
Definition: ntddk_ex.h:94
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
int ret
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
GLenum GLsizei len
Definition: glext.h:6722
BOOL WINAPI CryptUIDlgViewCertificateW(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, BOOL *pfPropertiesChanged)
Definition: main.c:4395
#define MultiByteToWideChar
Definition: compat.h:100
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static char title[]
Definition: ps.c:92
#define HeapFree(x, y, z)
Definition: compat.h:402

◆ CryptUIDlgViewCertificateW()

BOOL WINAPI CryptUIDlgViewCertificateW ( PCCRYPTUI_VIEWCERTIFICATE_STRUCTW  pCertViewInfo,
BOOL pfPropertiesChanged 
)

Definition at line 4395 of file main.c.

4397 {
4398  static GUID generic_cert_verify = WINTRUST_ACTION_GENERIC_CERT_VERIFY;
4400  WINTRUST_DATA wvt;
4402  BOOL ret = FALSE;
4403  CRYPT_PROVIDER_SGNR *signer;
4404  CRYPT_PROVIDER_CERT *provCert = NULL;
4405 
4406  TRACE("(%p, %p)\n", pCertViewInfo, pfPropertiesChanged);
4407 
4408  if (pCertViewInfo->dwSize != sizeof(CRYPTUI_VIEWCERTIFICATE_STRUCTW))
4409  {
4411  return FALSE;
4412  }
4413  /* Make a local copy in case we have to call WinVerifyTrust ourselves */
4414  memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
4415  if (!pCertViewInfo->u.hWVTStateData)
4416  {
4417  memset(&wvt, 0, sizeof(wvt));
4418  wvt.cbStruct = sizeof(wvt);
4419  wvt.dwUIChoice = WTD_UI_NONE;
4420  if (viewInfo.dwFlags &
4428  memset(&cert, 0, sizeof(cert));
4429  cert.cbStruct = sizeof(cert);
4430  cert.psCertContext = (CERT_CONTEXT *)viewInfo.pCertContext;
4431  cert.chStores = viewInfo.cStores;
4432  cert.pahStores = viewInfo.rghStores;
4433  wvt.u.pCert = &cert;
4435  WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
4436  viewInfo.u.pCryptProviderData =
4439  (CRYPT_PROVIDER_DATA *)viewInfo.u.pCryptProviderData, 0, FALSE, 0);
4440  provCert = WTHelperGetProvCertFromChain(signer, 0);
4441  ret = TRUE;
4442  }
4443  else
4444  {
4445  viewInfo.u.pCryptProviderData =
4449  viewInfo.idxSigner, viewInfo.fCounterSigner,
4450  viewInfo.idxCounterSigner);
4451  provCert = WTHelperGetProvCertFromChain(signer, viewInfo.idxCert);
4452  ret = TRUE;
4453  }
4454  if (ret)
4455  {
4456  ret = show_cert_dialog(&viewInfo, provCert, pfPropertiesChanged);
4457  if (!pCertViewInfo->u.hWVTStateData)
4458  {
4460  WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
4461  }
4462  }
4463  return ret;
4464 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define WTD_STATEACTION_VERIFY
Definition: wintrust.h:123
#define TRUE
Definition: types.h:120
#define WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
Definition: wintrust.h:135
DWORD cbStruct
Definition: wintrust.h:99
#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
Definition: cryptuiapi.h:89
DWORD fdwRevocationChecks
Definition: wintrust.h:103
#define WTD_REVOCATION_CHECK_CHAIN
Definition: wintrust.h:134
unsigned int BOOL
Definition: ntddk_ex.h:94
CRYPT_PROVIDER_SGNR *WINAPI WTHelperGetProvSignerFromChain(CRYPT_PROVIDER_DATA *pProvData, DWORD idxSigner, BOOL fCounterSigner, DWORD idxCounterSigner)
DWORD dwStateAction
Definition: wintrust.h:114
smooth NULL
Definition: ftsmooth.c:416
static BYTE cert[]
Definition: msg.c:1437
#define TRACE(s)
Definition: solgame.cpp:4
LONG WINAPI WinVerifyTrust(HWND hwnd, GUID *ActionID, LPVOID ActionData)
CRYPT_PROVIDER_CERT *WINAPI WTHelperGetProvCertFromChain(CRYPT_PROVIDER_SGNR *pSgnr, DWORD idxCert)
#define SetLastError(x)
Definition: compat.h:417
CRYPT_PROVIDER_DATA const * pCryptProviderData
Definition: cryptuiapi.h:129
int ret
#define WINTRUST_ACTION_GENERIC_CERT_VERIFY
Definition: softpub.h:24
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define WTD_REVOCATION_CHECK_END_CERT
Definition: wintrust.h:133
#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN
Definition: cryptuiapi.h:88
#define WTD_STATEACTION_CLOSE
Definition: wintrust.h:124
HANDLE hWVTStateData
Definition: wintrust.h:115
#define CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT
Definition: cryptuiapi.h:87
#define WTD_CHOICE_CERT
Definition: wintrust.h:95
struct WINTRUST_CERT_INFO_ * pCert
Definition: wintrust.h:111
static BOOL show_cert_dialog(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, CRYPT_PROVIDER_CERT *provCert, BOOL *pfPropertiesChanged)
Definition: main.c:4290
DWORD dwUIChoice
Definition: wintrust.h:102
#define WTD_UI_NONE
Definition: wintrust.h:84
CRYPT_PROVIDER_DATA *WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
#define memset(x, y, z)
Definition: compat.h:39
DWORD dwUnionChoice
Definition: wintrust.h:104

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 4469 of file main.c.

4471 {
4472  BOOL ret;
4473 
4474  TRACE("(%d, %p, %p, %s, %08x, %p)\n", dwContextType, pvContext, hwnd,
4475  debugstr_w(pwszTitle), dwFlags, pvReserved);
4476 
4477  switch (dwContextType)
4478  {
4480  {
4482 
4483  memset(&viewInfo, 0, sizeof(viewInfo));
4484  viewInfo.dwSize = sizeof(viewInfo);
4485  viewInfo.hwndParent = hwnd;
4486  viewInfo.szTitle = pwszTitle;
4487  viewInfo.pCertContext = pvContext;
4488  ret = CryptUIDlgViewCertificateW(&viewInfo, NULL);
4489  break;
4490  }
4491  default:
4492  FIXME("unimplemented for context type %d\n", dwContextType);
4494  ret = FALSE;
4495  }
4496  return ret;
4497 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
#define CERT_STORE_CERTIFICATE_CONTEXT
Definition: wincrypt.h:2974
#define TRACE(s)
Definition: solgame.cpp:4
static LPCSTR DWORD void * pvReserved
Definition: str.c:196
#define SetLastError(x)
Definition: compat.h:417
int ret
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
BOOL WINAPI CryptUIDlgViewCertificateW(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, BOOL *pfPropertiesChanged)
Definition: main.c:4395
#define memset(x, y, z)
Definition: compat.h:39

◆ CryptUIDlgViewSignerInfoA()

BOOL WINAPI CryptUIDlgViewSignerInfoA ( CRYPTUI_VIEWSIGNERINFO_STRUCTA pcvsi)

Definition at line 6995 of file main.c.

6996 {
6997  FIXME("%p: stub\n", pcvsi);
6998  return FALSE;
6999 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ 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 7568 of file main.c.

7570 {
7571  FIXME("%d %p %s %p %p: stub\n", flags, parent, debugstr_w(title), info, context);
7572  return FALSE;
7573 }
Definition: http.c:7094
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
r parent
Definition: btrfs.c:2869
GLbitfield flags
Definition: glext.h:7161
static char title[]
Definition: ps.c:92

◆ CryptUIWizExport()

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

Definition at line 6967 of file main.c.

6969 {
6970  BOOL ret;
6971 
6972  TRACE("(%08x, %p, %s, %p, %p)\n", dwFlags, hwndParent,
6973  debugstr_w(pwszWizardTitle), pExportInfo, pvoid);
6974 
6975  if (!(dwFlags & CRYPTUI_WIZ_NO_UI))
6977  pvoid);
6978  else
6979  {
6980  HANDLE file = CreateFileW(pExportInfo->pwszExportFileName,
6982  CREATE_ALWAYS, 0, NULL);
6983 
6984  if (file != INVALID_HANDLE_VALUE)
6985  {
6986  ret = do_export(file, pExportInfo, pvoid, NULL, FALSE);
6987  CloseHandle(file);
6988  }
6989  else
6990  ret = FALSE;
6991  }
6992  return ret;
6993 }
#define CloseHandle
Definition: compat.h:406
#define CRYPTUI_WIZ_NO_UI
Definition: cryptuiapi.h:246
#define INVALID_HANDLE_VALUE
Definition: compat.h:399
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define FILE_SHARE_READ
Definition: compat.h:125
unsigned int BOOL
Definition: ntddk_ex.h:94
#define GENERIC_WRITE
Definition: nt_native.h:90
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
static HWND hwndParent
Definition: cryptui.c:300
static HWND LPCWSTR pwszWizardTitle
Definition: cryptui.c:300
#define TRACE(s)
Definition: solgame.cpp:4
int ret
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
#define CREATE_ALWAYS
Definition: disk.h:72
#define CreateFileW
Definition: compat.h:408
static BOOL show_export_ui(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo, const void *pvoid)
Definition: main.c:6810
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:6671
Definition: fci.c:126

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 5536 of file main.c.

5538 {
5539  BOOL ret;
5540 
5541  TRACE("(0x%08x, %p, %s, %p, %p)\n", dwFlags, hwndParent, debugstr_w(pwszWizardTitle),
5543 
5544  if (pImportSrc &&
5545  pImportSrc->dwSize != sizeof(CRYPTUI_WIZ_IMPORT_SRC_INFO))
5546  {
5548  return FALSE;
5549  }
5550 
5551  if (!(dwFlags & CRYPTUI_WIZ_NO_UI))
5553  hDestCertStore);
5554  else if (pImportSrc)
5556  hDestCertStore);
5557  else
5558  {
5559  /* Can't have no UI without specifying source */
5561  ret = FALSE;
5562  }
5563 
5564  return ret;
5565 }
static BOOL show_import_ui(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc, HCERTSTORE hDestCertStore)
Definition: main.c:5423
#define CRYPTUI_WIZ_NO_UI
Definition: cryptuiapi.h:246
static BOOL do_import(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle, PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc, HCERTSTORE hDestCertStore)
Definition: main.c:5306
static HWND LPCWSTR PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc
Definition: cryptui.c:300
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
#define E_INVALIDARG
Definition: ddrawi.h:101
static HWND hwndParent
Definition: cryptui.c:300
static HWND LPCWSTR pwszWizardTitle
Definition: cryptui.c:300
#define TRACE(s)
Definition: solgame.cpp:4
#define SetLastError(x)
Definition: compat.h:417
int ret
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
static HWND LPCWSTR PCCRYPTUI_WIZ_IMPORT_SRC_INFO HCERTSTORE hDestCertStore
Definition: cryptui.c:300

Referenced by cert_mgr_dlg_proc(), and general_dlg_proc().