Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IX509EnrollmentPolicyServer::LoadPolicy method (certenroll.h)
The LoadPolicy method retrieves policy information from the certificate enrollment policy (CEP) server.
Syntax
HRESULT LoadPolicy(
[in] X509EnrollmentPolicyLoadOption option
);
Parameters
[in] option
A value of the X509EnrollmentPolicyLoadOption enumeration that specifies how to retrieve policy from the policy server. This can be one of the following values.
| Value | Meaning |
|---|---|
|
Reload if the cache has expired. |
|
Always load from the cache even if it has expired. This option is not currently supported. |
|
Always reload. |
|
Registers a thread to update a sequence number if there are changes to the template or the certification authority container. This value applies only to an Active Directory policy 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 |
|---|---|
|
The load option requested in the option parameter does not match any supported by the CEP server or you specified LoadOptionCacheOnly in the option parameter. |
|
There was a problem with the lightweight directory access protocol (LDAP) used to locate the CEP server. |
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 |
See also
Feedback
Was this page helpful?
