ICertPolicy::ShutDown method (certpol.h)

The ShutDown method is called by the server engine before the server is terminated.

When ShutDown is called, the policy module should clean up and stop. It is guaranteed that no requests will arrive after ShutDown is called.

Syntax

HRESULT ShutDown();

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

When you write custom policy modules, implement this method.

Examples

#include <windows.h>
#include <stdio.h>
#include <Certpol.h>

STDMETHODIMP CCertPolicy::ShutDown()
{
    // Clean up resources used by this process.

    // Display message that this method has been called.
    if ( fDebug )
    {
        printf("Policy module Shutdown was called\n");
    }
    return( S_OK );
}

Requirements

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

See also

ICertPolicy

ICertPolicy2