Export (0) Print
Expand All
Expand Minimize

SIGNER_SPC_CHAIN_INFO structure

The SIGNER_SPC_CHAIN_INFO structure specifies a Software Publisher Certificate (SPC) and certificate chain 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_SPC_CHAIN_INFO {
  DWORD      cbSize;
  LPCWSTR    pwszSpcFile;
  DWORD      dwCertPolicy;
  HCERTSTORE hCertStore;
} SIGNER_SPC_CHAIN_INFO, *PSIGNER_SPC_CHAIN_INFO;

Members

cbSize

The size, in bytes, of the structure.

pwszSpcFile

The name of the SPC file to use to sign a document.

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.

ValueMeaning
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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

See also

SIGNER_CERT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft