CRYPTUI_WIZ_EXPORT_INFO structure (cryptuiapi.h)
[The CRYPTUI_WIZ_EXPORT_INFO structure is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
The CRYPTUI_WIZ_EXPORT_INFO structure contains information that controls the operation of the CryptUIWizExport function.
Syntax
typedef struct _CRYPTUI_WIZ_EXPORT_INFO {
DWORD dwSize;
LPCWSTR pwszExportFileName;
DWORD dwSubjectChoice;
union {
PCCERT_CONTEXT pCertContext;
PCCTL_CONTEXT pCTLContext;
PCCRL_CONTEXT pCRLContext;
HCERTSTORE hCertStore;
};
DWORD cStores;
HCERTSTORE *rghStores;
} CRYPTUI_WIZ_EXPORT_INFO, *PCRYPTUI_WIZ_EXPORT_INFO;
Members
dwSize
The size, in bytes, of this structure.
pwszExportFileName
A pointer to a null-terminated Unicode string that contains the fully qualified file name to export to. If this member is not NULL and the CRYPTUI_WIZ_NO_UI flag in the dwFlags parameter of the CryptUIWizExport function is not set, this string is displayed to the user as the default file name. This member is required if the CRYPTUI_WIZ_NO_UI flag is set. This member is otherwise optional.
dwSubjectChoice
Indicates the type of the subject to export. This member can be one of the following values.
Value | Meaning |
---|---|
|
Export the certificate context that is specified in the pCertContext member. |
|
Export the certificate trust list (CTL) context that is specified in the pCTLContext member. |
|
Export the certificate revocation list (CRL) context that is specified in the pCRLContext member. |
|
Export the certificate store that is specified in the hCertStore member. |
|
Export only the certificates from the certificate store that is specified in the hCertStore member. |
pCertContext
A pointer to the CERT_CONTEXT structure that contains the certificate to export. This member is used if the dwSubjectChoice member contains CRYPTUI_WIZ_EXPORT_CERT_CONTEXT.
pCTLContext
A pointer to the CTL_CONTEXT structure that contains the CTL to export. This member is used if the dwSubjectChoice member contains CRYPTUI_WIZ_EXPORT_CTL_CONTEXT.
pCRLContext
A pointer to the CRL_CONTEXT structure that contains the CRL to export. This member is used if the dwSubjectChoice member contains CRYPTUI_WIZ_EXPORT_CRL_CONTEXT.
hCertStore
A handle to the certificate store to export. This member is used if the dwSubjectChoice member contains CRYPTUI_WIZ_EXPORT_CERT_STORE or CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY.
cStores
The number of elements in the rghStores array.
rghStores
An array of extra certificate stores to search for certificates in the trust chain if the chain is being exported with a certificate. This member is ignored if dwSubjectChoice is anything other than the CRYPTUI_WIZ_EXPORT_CERT_CONTEXT value. The cStores member contains the number of elements in this array.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | cryptuiapi.h |