Upravit

Sdílet prostřednictvím


SIGNER_CERT_STORE_INFO structure

The SIGNER_CERT_STORE_INFO structure specifies the certificate store used to sign a document.

Note

This structure is not defined in any header file. To use this structure, you must define it yourself as shown in this topic.

 

Syntax

typedef struct _SIGNER_CERT_STORE_INFO {
  DWORD          cbSize;
  PCCERT_CONTEXT pSigningCert;
  DWORD          dwCertPolicy;
  HCERTSTORE     hCertStore;
} SIGNER_CERT_STORE_INFO, *PSIGNER_CERT_STORE_INFO;

Members

cbSize

The size, in bytes, of the structure.

pSigningCert

A pointer to a CERT_CONTEXT structure for the signing certificate.

dwCertPolicy

Specifies how certificates are added to the signature. To find the certificate chain, the MY, CA, ROOT, and SPC stores, in addition to the store specified by the hCertStore member, are checked. This member can be one or more of the following values.

Value Meaning
SIGNER_CERT_POLICY_CHAIN
2 (0x2)
Add only certificates in the certificate chain.
SIGNER_CERT_POLICY_CHAIN_NO_ROOT
8 (0x8)
Add only certificates in the certificate chain, excluding the root certificate.
SIGNER_CERT_POLICY_STORE
1 (0x1)
Add all certificates in the store specified by the hCertStore member. This flag can be a bitwise-OR combination with any of the other possible values for this member.

 

hCertStore

Optional. A handle to an additional certificate store.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]

See also

SIGNER_CERT