ICertServerExit::SetContext method (certif.h)

The SetContext method causes the current instantiation of the interface to operate on the request referenced by Context.

This must be identical to a value given by the Context parameter in ICertExit::Notify. This method must be called before calling any of the other ICertServerExit methods, in order that the interface reference a valid request.

Syntax

HRESULT SetContext(
  [in] LONG Context
);

Parameters

[in] Context

Specifies the request and associated certificate under construction.

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.

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

ICertExit::Notify

ICertPolicy::VerifyRequest

ICertServerExit