Applies to: desktop apps only
The PostTaskCompletion method posts a one-time task into the completion port's queue. The one-time task is represented by the IFWXTaskCompletion interface.
HRESULT PostTaskCompletion( [in] IFWXTaskCompletion *pIFWXTaskCompletion, [in] UserContextType UserData );
Pointer to the IFWXTaskCompletion interface.
The UserData parameter is used for differentiation between completion notifications.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
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.
Minimum supported client
Minimum supported server
|Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)|
|Forefront Threat Management Gateway (TMG) 2010|
Build date: 7/12/2010