CRYPTUI_WIZ_DIGITAL_SIGN_INFO structure (cryptuiapi.h)
[The CRYPTUI_WIZ_DIGITAL_SIGN_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_DIGITAL_SIGN_INFO structure contains information about digital signing. This structure is used by the CryptUIWizDigitalSign function.
Syntax
typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_INFO {
DWORD dwSize;
DWORD dwSubjectChoice;
union {
LPCWSTR pwszFileName;
PCCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO pSignBlobInfo;
};
DWORD dwSigningCertChoice;
union {
PCCERT_CONTEXT pSigningCertContext;
PCCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO pSigningCertStore;
PCCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO pSigningCertPvkInfo;
};
LPCWSTR pwszTimestampURL;
DWORD dwAdditionalCertChoice;
PCCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO pSignExtInfo;
} CRYPTUI_WIZ_DIGITAL_SIGN_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_INFO;
Members
dwSize
The size, in bytes, of the structure.
dwSubjectChoice
A value that indicates the entity that is to be signed. This member is required if CRYPTUI_WIZ_NO_UI is specified in the dwFlags parameter of the CryptUIWizDigitalSign function. This can be one of the following values.
Value | Meaning |
---|---|
|
The memory BLOB specified by the pSignBlobInfo member is to be signed. |
|
The file specified by the pwszFileName member is to be signed. |
|
The user will be prompted for a file to sign. |
pwszFileName
A pointer to a null-terminated Unicode string that contains the path and file name of the file to sign. This member is used if CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_FILE is specified for the dwSubjectChoice member.
pSignBlobInfo
A pointer to a CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO structure that contains the BLOB to sign. This member is used if CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_BLOB is specified for the dwSubjectChoice member.
dwSigningCertChoice
A value that specifies the location of the certificate that is used to sign the entity. The default value is zero. This can be one of the following values.
Value | Meaning |
---|---|
|
The certificate is contained in the CERT_CONTEXT structure pointed to by the pSigningCertContext member. |
|
The certificate is contained in the certificate store contained in the CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO structure pointed to by the pSigningCertStore member. |
|
The certificate is contained in the PVK file contained in the CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO structure pointed to by the pSigningCertPvkInfo member. |
|
The certificates in the My store are used. |
pSigningCertContext
A pointer to a CERT_CONTEXT structure that contains the certificate to use to sign the entity. This member is used if CRYPTUI_WIZ_DIGITAL_SIGN_CERT is specified for the dwSigningCertChoice member.
pSigningCertStore
A pointer to a CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO structure that contains the certificate to use to sign the entity. This member is used if CRYPTUI_WIZ_DIGITAL_SIGN_STORE is specified for the dwSigningCertChoice member.
pSigningCertPvkInfo
A pointer to a CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO structure that contains the certificate to use to sign the entity. This member is used if CRYPTUI_WIZ_DIGITAL_SIGN_PVK is specified for the dwSigningCertChoice member.
pwszTimestampURL
A pointer to a null-terminated Unicode string that contains the URL for the time stamp.
dwAdditionalCertChoice
A value that indicates whether additional certificates will be included in the signature. The default value is zero. This can be one of the following values.
pSignExtInfo
A pointer to a CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO structure that contains extended information about the signature.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | cryptuiapi.h |