To receive progress statistics about an ongoing file transfer, register the kind of transfer information you want with the FtsRegisterStatusCallback method. Typical kinds of requests would be to notify the caller every 100KB of the file transfer or every 10 percent of the file transfer. Notifications can also be requested about the number of packets received, as well as the number of bogus packets (received on the same IP address and port, but not part of an expected file transfer operation), duplicate packets, dropped packets, and so on. Progress notifications are processed by the FtsOnTransferProgress event. Read the appropriate properties and take the appropriate action in an FtsOnTransferProgress subroutine. You can revoke a progress notification by calling the FtsRevokeStatusCallback method.
Note that progress notifications trigger only the FtsOnTransferProgress event. The values of transfer progress properties (such as NumPacketsDropped) are continuously available.
© 1996-1998 Microsoft Corporation. All rights reserved.