ICertPolicy2::ShutDown method

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();

Parameters

This method has no parameters.

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certpol.h (include Certsrv.h)

Library

Certidl.lib

IID

IID_ICertPolicy2 is defined as 3db4910e-8001-4bf1-aa1b-f43a808317a0

See also

ICertPolicy
ICertPolicy2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft