IEnroll4::getCertContextFromFileResponseWStr method (xenroll.h)

[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]

The getCertContextFromFileResponseWStr method retrieves the certificate from a file containing a response from a certification authority.This method was first defined in the IEnroll4 interface.

Syntax

HRESULT getCertContextFromFileResponseWStr(
  [in]  LPCWSTR        pwszResponseFileName,
  [out] PCCERT_CONTEXT *ppCertContext
);

Parameters

[in] pwszResponseFileName

A pointer to a null-terminated wide character string that represents the name of the file containing the response.

[out] ppCertContext

A pointer to a pointer to a CERT_CONTEXT structure that receives the certificate retrieved from the response.

Return value

None

Remarks

The response contained in pwszResponseFileName must contain exactly one certificate; a child certificate cannot be present.

The response may be either a PKCS #7 or a full Certificate Management over CMS (CMC) response. However, to accept a full CMC response, the cryptographic service provider must support Abstract Syntax Notation One (ASN.1) encoding of CMC structures.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header xenroll.h
Library Uuid.lib
DLL Xenroll.dll

See also

IEnroll4