IWMSServerTotalCounters::get_AllCounters

banner art

Previous Next

IWMSServerTotalCounters::get_AllCounters

The get_AllCounters method retrieves an array that contains all of the counters supported by the interface.

Syntax

  HRESULT get_AllCounters(
  SAFEARRAY(VARIANT)  psaCounters
);

Parameters

psaCounters

[out] Pointer to a VARIANT array containing the counters

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_POINTER 0x80004003 Indicates that psaCounters is a NULL pointer argument.

Remarks

The array is two-dimensional. The first element in each row contains the name of the counter property, and the second element in each row contains the value. The get_AllCounters method is used to speed up counter retrieval during remote administration, by making one call instead of multiple calls to retrieve multiple counter properties.

For more information about the counters returned in the array, see the following methods.

Method Description
get_Advertisements Retrieves the cumulative number of advertisements that have been streamed from playlists since the last reset.
get_ConnectedPlayers Retrieves the total number of players connected to the server since the last reset.
get_CountersStartTime Retrieves the date and time at which the server started monitoring the total counters.
get_LateReads Retrieves the total number of read operations that took longer than 400 milliseconds.
get_LateSends Retrieves the total number of late send operations since the last reset.
get_OutgoingDistributionBytesSent Retrieves the total number of bytes sent to distribution connections since the last reset.
get_OutgoingDistributionConnections Retrieves the total number of distribution connections established since the last reset.
get_PlayerBytesSent Retrieves the total number of bytes sent to players since the last reset.
get_StreamDenials Retrieves the total number of stream transmissions denied since the last reset.
get_StreamErrors Retrieves the total number of dropped-packet errors since the last reset.
get_StreamingPlayers Retrieves the total number of players that have streamed content from the server since the last reset.
get_StreamingHTTPPlayers Retrieves the total number of players that have streamed content by using the HTTP protocol from the server since the last reset.
get_StreamingRTSPPlayers Retrieves the total number of players that have streamed content by using the RTSP protocol from the server since the last reset.
get_StreamingUDPPlayers Retrieves the total number of players that have streamed content by using the User Datagram Protocol (UDP) from the server since the last reset.
get_StreamTerminations Retrieves the total number of stream transmissions that have been terminated since the last reset.
get_UDPResendRequests Retrieves the number of User Datagram Protocol (UDP) resend requests received since the last reset.
get_UDPResendsSent Retrieves the number of UDP resend requests processed since the last reset.

Example Code

  EXIT:
    // TODO: Release temporary COM objects and uninitialize COM.

Requirements

Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

  • Note   Some counters are not available in the Windows Server 2003 family.

See Also

Previous Next