IEnroll4::createFileRequestWStr method (xenroll.h)

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

The createFileRequestWStr method creates a PKCS #10, PKCS #7, or full Certificate Management over CMS (CMC) format certificate request and stores it in a file. This method was first defined in the IEnroll4 interface.

Syntax

HRESULT createFileRequestWStr(
  [in] LONG    Flags,
  [in] LPCWSTR pwszDNName,
  [in] LPCWSTR pwszUsage,
  [in] LPCWSTR pwszRequestFileName
);

Parameters

[in] Flags

Value specifying the type of certificate request to create. Specify one of the following values.

Value Meaning
XECR_CMC
Full CMC
XECR_PKCS10_V1_5
PKCS #10
XECR_PKCS10_V2_0
PKCS #10 version 2
XECR_PKCS7
PKCS #7

[in] pwszDNName

A pointer to a null-terminated wide character string that represents 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 wide character string for 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.

[in] pwszRequestFileName

A pointer to a null-terminated wide character string that contains the name of the file that will receive the request.

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

See also

IEnroll4