次の方法で共有


IFWXNetworkSet::SetContext method

Applies to: desktop apps only

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

Syntax

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

Parameters

  • uiContextSlot [in]
    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 [in]
    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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXNetworkSet

 

 

Build date: 7/12/2010