IEnroll::CreatePKCS7RequestFromRequest method (xenroll.h)
[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]
The CreatePKCS7RequestFromRequest method creates a PKCS #7 request from an existing certificate request. This method was first defined in the IEnroll interface.
Syntax
HRESULT CreatePKCS7RequestFromRequest(
[in] PCRYPT_DATA_BLOB pRequest,
[in] PCCERT_CONTEXT pSigningCertContext,
[out] PCRYPT_DATA_BLOB pPkcs7Blob
);
Parameters
[in] pRequest
A pointer to a CRYPT_DATA_BLOB structure that represents the existing request.
[in] pSigningCertContext
A pointer to a CERT_CONTEXT structure that represents the certificate used to sign the request.
[out] pPkcs7Blob
A pointer to a CRYPT_DATA_BLOB structure that receives the returned PKCS #7 certificate request.
When you have finished using this memory, free it by passing the pbData member of this structure to the CoTaskMemFree function.
Return value
If the method succeeds, the method returns S_OK.
If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
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 |