SetNotificationInterface Method of the IFWXOverlapped Interface

The SetNotificationInterface method sets the callback for the completion of the overlapped I/O.

Syntax

HRESULT SetNotificationInterface(
  [in]  IFWXExternalIOCompletion* piExternalIOCompletion,
  [in]  UserContextType UserData
);

Parameters

piExternalIOCompletion

Pointer to an IFWXExternalIOCompletion interface that is notified when the overlapped I/O is completed.

UserData

An opaque value to pass to the IFWXExternalIOCompletion::CompleteAsyncIO notification method. This parameter provides a context to the notification.

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 completion notifications from distinct network socket objects and differentiate between them by using different values for UserData.

Requirements

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

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXOverlapped


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.