Windows Media Services SDK banner art
PreviousNext

FtsOnStatusChanged Event

Triggered by a change in the status of a transfer.

Syntax

NSFile_FtsOnStatusChanged

Parameters

This event has no parameters.

Remarks

The following code example shows how to use FtsOnStatusChanged to determine that a transfer was canceled. The File Transfer object is NSFile and the code in the subroutine is called when the status of a file transfer changes. The change in this case is that a file transfer has “completed” (TransferStatus = 5) because it was canceled (Result = -2147467260).

Sub NSFile_FtsOnStatusChanged
   Canceled = (nsfile.TransferStatus = 5) And (nsfile.Result = -2147467260)
    If Canceled Then MsgBox (“Transfer was canceled.”)
End Sub
PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.