Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Initialize method initializes an IX509PolicyServerListManager object.
Syntax
HRESULT Initialize(
[in] X509CertificateEnrollmentContext context,
[in] PolicyServerUrlFlags Flags
);
Parameters
[in] context
An X509CertificateEnrollmentContext enumeration value that specifies the nature of the end entity for which an issued certificate is intended. This can be one of the following values.
[in] Flags
A PolicyServerUrlFlags enumeration value that specifies where policy information is located. This can be a bitwise OR of the following values.
Value | Meaning |
---|---|
|
Policy information is specified in group policy by an administrator. |
|
Policy information is specified in the registry. |
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 |
---|---|
|
The Flags parameter must contain a bitwise OR of PsfLocationGroupPolicy and PsfLocationRegistry. |
|
The IX509PolicyServerListManager has already been initialized. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | certenroll.h |
DLL | CertEnroll.dll |