ICertPropertyEnrollmentPolicyServer::Initialize method (certenroll.h)
The Initialize method initializes an ICertPropertyEnrollmentPolicyServer object.
Syntax
HRESULT Initialize(
[in] EnrollmentPolicyServerPropertyFlags PropertyFlags,
[in] X509EnrollmentAuthFlags AuthFlags,
[in] X509EnrollmentAuthFlags EnrollmentServerAuthFlags,
[in] PolicyServerUrlFlags UrlFlags,
[in] BSTR strRequestId,
[in] BSTR strUrl,
[in] BSTR strId,
[in] BSTR strEnrollmentServerUrl
);
Parameters
[in] PropertyFlags
An EnrollmentPolicyServerPropertyFlags enumeration value that specifies the default certificate enrollment policy (CEP) server. This can be one of the following values.
Value | Meaning |
---|---|
|
No default policy server URL has been specified. |
|
The policy server URL returned by GetPolicyServerUrl is the default value when an URL has not been specified. |
[in] AuthFlags
An X509EnrollmentAuthFlags enumeration value that specifies the authentication type used by the client to authenticate itself to the CEP server. This can be one of the following values.
[in] EnrollmentServerAuthFlags
An X509EnrollmentAuthFlags enumeration value that specifies the authentication type used by the client to authenticate itself to the CES. See the AuthFlags parameter for the possible values of the enumeration type. For Windows 7, only X509AuthCertificate can be specified.
[in] UrlFlags
A PolicyServerUrlFlags enumeration value that specifies policy server flags. This can be a bitwise OR of the following values.
[in] strRequestId
A BSTR variable that contains a unique string identifier for the certificate request to be sent to the certification authority during enrollment. The string can contain any information that uniquely identifies the request.
[in] strUrl
A BSTR variable that contains the URL for the certificate enrollment policy (CEP) server.
[in] strId
A BSTR variable that contains the ID of the CEP server.
[in] strEnrollmentServerUrl
A BSTR variable that contains the URL for the certificate enrollment server.
Return value
If the function succeeds, the function returns S_OK.
If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.
Return code | Description |
---|---|
|
There was insufficient memory available to a string value. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | certenroll.h |