IWMSStreamHeaderList::SetNativeContainerHeader

The SetNativeContainerHeader method specifies the actual header of the digital media stream.

HRESULT SetNativeContainerHeader(
  INSSBuffer*  pBuffer,
  DWORD  dwOffset,
  DWORD  dwLength
);

Arguments

pBuffer

[in] Pointer to an INSSBufferINSSBuffer Interface containing the native header.

dwOffset

[in] DWORD containing the offset into the buffer where the header begins, in bytes.

dwLength

[in] DWORD containing the size of the header, in bytes.

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

pBuffer is null.

Requirements

Header: streamdescription.h.

Library: WMSServerTypeLib.dll.

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

See Also

Concepts

IWMSStreamHeaderList Interface