IWMSPacket::GetAttribute

The GetAttribute method retrieves the value of a packet attribute that is defined by WMS_PACKET_ATTRIBUTES.

HRESULT GetAttribute(
  DWORD  ValueName,
  DWORD*  pdwValue
);

Arguments

ValueName

[in] Member of the WMS_PACKET_ATTRIBUTES enumeration type. This must be one of the following values.

Value

Description

WMS_PACKET_DURATION

Retrieves the duration of the packet.

WMS_PACKET_ERASURES_DETECTED

Retrieves a value indicating whether the packet was dropped.

WMS_PACKET_FLAGS

Retrieves any flags associated with the packet defined by WMS_PACKET_LIST_ATTRIBUTES.

WMS_PACKET_LENGTH

Retrieves the length of the packet.

WMS_PACKET_NET_SEQUENCE_NUMBER

Retrieves the number of the packet in the sequence.

WMS_PACKET_NUM_BUFFERS

Retrieves the count of buffers in the packet.

WMS_PACKET_NUM_NACKS

Retrieves the number of times the packet has been resent.

WMS_PACKET_PACKET_NUM

Retrieves the number of the packet.

WMS_PACKET_PACKETIZED_HDRLEN

Header length of the packet.

WMS_PACKET_PRESENT_TIME

Retrieves the low-order DWORD presentation time of the packet.

WMS_PACKET_PRESENT_TIME_HI

Retrieves the high-order DWORD presentation time of the packet.

WMS_PACKET_RECV_TIME

Retrieves the receive time of the packet.

WMS_PACKET_SEND_TIME

Retrieves the low-order DWORD send time of the packet.

WMS_PACKET_SEND_TIME_ADJUSTMENT

Send-time adjustment of the packet.

WMS_PACKET_SEND_TIME_HI

Retrieves the high-order DWORD send time of the packet.

WMS_PACKET_STREAM_NUM

Retrieves the stream number associated with this packet.

pdwValue

[out] Pointer to a DWORD containing the value retrieved.

Return Value

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

Return code

Number

Description

E_INVALIDARG

0x80070057

pdwValue is null or dwValueName is not a valid index location.

Requirements

Header: wmspacket.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Concepts

IWMSPacket Interface