SetContext Method of the IFWXNetworkElement Interface

The SetContext method sets the context information for the network element.

Syntax

HRESULT SetContext(
  [in]  unsigned int uiContextSlot,
  [in]  IUnknown* punkContext
);

Parameters

  • uiContextSlot
    Unsigned integer value that specifies the registration handle created by the IFWXNetConfigDetector::Register method. When you register a new network configuration detection client, the first notification that it receives is of the fwx_ncd_Startup type, and the Parameters member of the FwxNcdEvent structure provided with this notification contains the value for this parameter.

  • punkContext
    Pointer to the IUnknown interface on the user-defined context information object.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

The context information object must implement the IUnknown interface.

Requirements

Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXNetworkElement

Send comments about this topic to Microsoft

Build date: 6/30/2010