IEnroll4::createRequestWStr method (xenroll.h)
[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]
The createRequestWStr method creates a PKCS #10, PKCS #7, or full Certificate Management over CMS (CMC) format certificate request and stores it in a BLOB. This method was first defined in the IEnroll4 interface.
Syntax
HRESULT createRequestWStr(
[in] LONG Flags,
[in] LPCWSTR pwszDNName,
[in] LPCWSTR pwszUsage,
[out] PCRYPT_DATA_BLOB pblobRequest
);
Parameters
[in] Flags
Value specifying the type of certificate request to create. Specify one of the following values.
Value | Meaning |
---|---|
|
Full CMC |
|
PKCS #10 |
|
PKCS #10 version 2 |
|
PKCS #7 |
[in] pwszDNName
A pointer to a null-terminated Unicode string that contains the distinguished name (DN) of the entity for which the request is being made. The DN name must follow the X.500 naming convention, for example "CN=User, O=Microsoft". If a two-letter prefix does not exist, an object identifier (OID) may be provided instead. This parameter may be NULL.
[in] pwszUsage
A pointer to a null-terminated Unicode string that contains the OID that describes the purpose of the certificate being generated, for example, individual or commercial Authenticode certificate, or client authentication. You can also specify multiple OIDs separated by a comma.
[out] pblobRequest
A pointer to a CRYPT_DATA_BLOB structure that receives the 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 |