|Microsoft DirectX 9.0|
The MapPID method maps one or more PIDs to the pin.
HRESULT MapPID( ULONG culPID, ULONG* pulPID, MEDIA_SAMPLE_CONTENT MediaSampleContent );
[in] Specifies the number of elements in the pulPID array.
[in] Pointer to an array of size culPID, allocated by the caller. Each element in the array contains a PID to be mapped.
[in] Variable of type MEDIA_SAMPLE_CONTENT that specifies the contents of the stream.
Returns S_OK if successful. If the method fails, it returns an HRESULT error code.
There may be no more than 255 distinct PIDs mapped at any given time. This includes the PIDs that the Demux maps internally for its own use; this number varies depending on the transport stream. This limitation should not present a problem in practice, because applications will typically map no more than a dozen PIDs on any given transport stream.