The CTL_VERIFY_USAGE_STATUS structure is used by CertVerifyCTLUsage to return the CTL containing the subject, the subject's index into the CTL's array of entries, and the signer of the CTL.
typedef struct _CTL_VERIFY_USAGE_STATUS {
DWORD cbSize;
DWORD dwError;
DWORD dwFlags;
PCCTL_CONTEXT *ppCtl; // IN OUT OPTIONAL
DWORD dwCtlEntryIndex;
PCCERT_CONTEXT *ppSigner; // IN OUT OPTIONAL
DWORD dwSignerIndex;
} CTL_VERIFY_USAGE_STATUS, *PCTL_VERIFY_USAGE_STATUS;
Upon input to CertVerifyCTLUsage, cbSize must be set to a size >= sizeof(CTL_VERIFY_USAGE_STATUS). Otherwise, CertVerifyCTLUsage returns FALSE and sets LastError to E_INVALIDARG.
Returned contexts must be freed via the store's free context APIs.
Returned contexts must be freed via the store's free context APIs.
CERT_CONTEXT, CTL_CONTEXT, CertVerifyCTLUsage