ICertServerPolicy::EnumerateExtensionsClose method (certif.h)

The EnumerateExtensionsClose method frees the resources connected with extension enumeration.

Syntax

HRESULT EnumerateExtensionsClose();

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 EnumerateExtensionsClose method after calling the EnumerateExtensionsSetup and ICertServerPolicy::EnumerateExtensions methods.

Examples

// Close the enumeration.
// hr is defined as an HRESULT.
hr = pCertServerPolicy->EnumerateExtensionsClose();
if (FAILED(hr))
{
    printf("Failed EnumerateExtensionsClose [%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

ICertServerExit::EnumerateExtensionsSetup

ICertServerPolicy

ICertServerPolicy::EnumerateExtensions