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 GetCacheDir method retrieves the name of the directory on the certificate enrollment policy (CEP) server that contains the policy cache file.
Syntax
HRESULT GetCacheDir(
[out, retval] BSTR *pValue
);
Parameters
[out, retval] pValue
Pointer to a BSTR that receives the directory name.
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 cache directory could not be found. |
|
The pValue parameter must not be NULL. |
|
The IX509EnrollmentPolicyServer has not been initialized. |
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 |