共用方式為


IAMNetworkStatus interface (qnetwork.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IAMNetworkStatus interface reports the quality of the network connection for the legacy Windows Media Player 6.4 source filter. The Windows Media Source filter implements this interface. It enables clients to retrieve information about the quality of the network connection.

Inheritance

The IAMNetworkStatus interface inherits from the IDispatch interface. IAMNetworkStatus also has these types of members:

Methods

The IAMNetworkStatus interface has these methods.

 
IAMNetworkStatus::get_BufferingCount

The get_BufferingCount method retrieves the number of times the network source has buffered the data.
IAMNetworkStatus::get_BufferingProgress

The get_BufferingProgress method retrieves a value indicating the buffering progress.
IAMNetworkStatus::get_IsBroadcast

The get_IsBroadcast method retrieves a value indicating whether the current stream is a broadcast stream.
IAMNetworkStatus::get_LostPackets

The get_LostPackets method retrieves the number of packets that have been lost.
IAMNetworkStatus::get_ReceivedPackets

The get_ReceivedPackets method retrieves the number of packets that have been received.
IAMNetworkStatus::get_ReceptionQuality

The get_ReceptionQuality method retrieves a value indicating the reception quality.
IAMNetworkStatus::get_RecoveredPackets

The get_RecoveredPackets method retrieves the number of recovered packets.

Remarks

To define the interface identifier, include the header file Initguid.h before Qnetwork.h, but after Dshow.h and other header files:

#include <dshow.h>
#include <initguid.h>
#include <qnetwork.h>
Note  Make sure that Initguid.h is included only once in your project. Otherwise, you will receive linker errors for duplicate GUID values.
 

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header qnetwork.h

See also

IDispatch