PostTaskCompletion Method of the IFWXFirewall2 Interface

The PostTaskCompletion method posts a one-time task into the completion port's queue. The one-time task is represented by the IFWXTaskCompletion interface.

Syntax

HRESULT PostTaskCompletion(
  [in]  IFWXTaskCompletion* pIFWXTaskCompletion,
  [in]  UserContextType UserData
);

Parameters

pIFWXTaskCompletion

Pointer to the IFWXTaskCompletion interface.

UserData

The UserData parameter is used for differentiation between completion notifications.

Return Value

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

Remarks

The UserData parameter provides a context to the notification. You can use the same notification interface for a number of completion notifications and differentiate among them by using different values for the UserData parameter.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXFirewall2


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.