Partager via


IXDSCodec::GetXDSPacket

 
Microsoft DirectShow 9.0

IXDSCodec::GetXDSPacket

This topic applies to Windows XP Service Pack 1 or later.

The GetXDSPacket method retrieves the most recent XDS packet.

Syntax

  HRESULT GetXDSPacket(
    long  *pXDSClassPkt
    long  *pXDSTypePkt
    BSTR  *pBstrXDSPkt
    long  *pPktSeqID
    long  *pCallSeqID
    REFERENCE_TIME  *pTimeStart
    REFERENCE_TIME  *pTimeEnd
);

Parameters

pXDSClassPkt

[out]  Receives the packet class.

pXDSTypePkt

[out]  Receives the class-specific packet type.

pBstrXDSPkt

[out]  Receives the packet as a BSTR value.

pPktSeqID

[out]  Receives the number of ratings packets that have been decoded. This information can be used for diagnostic purposes.

pCallSeqID

[out]  Receives the number of times this method has been called for the current ratings packet. This information can be used for diagnostic purposes.

pTimeStart

[out]  Receives the start time of the sample containing the packet.

pTimeEnd

[out]  Receives the stop time of the sample containing the packet.

Return Values

Returns an HRESULT value. Possible values include those in the following table.

Value Description
E_POINTER NULL pointer argument
S_OK Success

Remarks

The returned BSTR contains binary data which might include embedded NULL characters. The caller must free the returned BSTR by calling SysFreeString.

Requirements

Header: EncDec.h.

See Also