INETSTREAMINFO Structure  
 

This structure contains information about the data stream being currently read or written.

typedef struct _INETSTREAMINFO
{
    DWORD   dwStreamThread;
    DWORD   dwStreamSize;
    DWORD   dwStreamCopied;
    DWORD   dwStreamMode;
    DWORD   dwStreamError;
    DWORD   dwBytesPerSecond;
    DWORD   dwTimeElapsed;
    DWORD   dwTimeEstimated;
} INETSTREAMINFO, *LPINETSTREAMINFO;

Members

dwStreamThread
Specifies the numeric ID for the thread that created the socket.
dwStreamSize
The maximum number of bytes that will be read or written. This is the same value as the buffer length specified by the caller, and may be zero which indicates that no maximum size was specified. Note that if this value is zero, the application will be unable to calculate a completion percentage or estimate the amount of time for the operation to complete.
dwStreamCopied
The total number of bytes that have been copied to or from the stream buffer.
dwStreamMode
A numeric value which specifies the stream operation that is current being performed. It may be one of the following values:
Constant Description
INET_STREAM_READ Data is being read from the socket and stored in the specified stream buffer.
INET_STREAM_WRITE Data is being written from the specified stream buffer to the socket.
dwStreamError
The last error that occurred when reading or writing the data stream. If no error has occurred, this value will be zero.
dwBytesPerSecond
The average number of bytes that have been copied per second.
dwTimeElapsed
The number of seconds that have elapsed since the file transfer started.
dwTimeEstimated
The estimated number of seconds until the operation is completed. This is based on the average number of bytes transferred per second and requires that a maximum stream buffer size be specified by the caller.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header: Include cswsock10.h

See Also

ReadStream, StoreStream, WriteStream