ICertServerPolicy::EnumerateAttributesClose method (certif.h)

The EnumerateAttributesClose method frees the resources connected with attribute enumeration.

Syntax

HRESULT EnumerateAttributesClose();

Return value

VB

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.

Remarks

All policy modules should call the EnumerateAttributesClose method after calling the EnumerateAttributesSetup and
EnumerateAttributes methods.

Examples

// Close the enumeration.
// hr is defined as an HRESULT.
hr = pCertServerPolicy->EnumerateAttributesClose();
if (FAILED(hr))
{
    printf("Failed EnumerateAttributesClose [%x]\n", hr);
    goto error;
}

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header certif.h (include Certsrv.h)
Library Certidl.lib
DLL Certcli.dll

See also

ICertServerPolicy

ICertServerPolicy::EnumerateAttributes

ICertServerPolicy::EnumerateAttributesSetup