Microsoft Internet Security and Acceleration Server 2000

IFWXExternalIOCompletion::CompleteAsyncIO Method

Called by the firewall service when a Win32 I/O operation completes.

HRESULT CompleteAsyncIO(
  BOOL fSuccess,
  DWORD NumberOfBytesTransfered,
  DWORD Win32ErrorCode,
  IFWXOverlapped *pOverlapped,
  UserContextType UserData
);

Parameters

fSuccess
[in] Success flag. If TRUE, the I/O operation succeeded. If FALSE, it failed.
NumberOfBytesTransfered
[in] Number of bytes transferred during a successful I/O operation.
Win32ErrorCode
[in] Win32 error code for a failed I/O operation.
pOverlapped
[in] Pointer to the IFWXOverlapped interface on the overlapped object used for this operation.
UserData
[in] The UserData parameter set in the call to the IFWXOverlapped::SetNotificationInterface method.

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.