Share via


IWMSPacket::GetAllBuffers

banner art

Previous Next

IWMSPacket::GetAllBuffers

The GetAllBuffers method retrieves an array of WMSBUFFERDESC structures. Each WMSBUFFERDESC structure contains the location and size of a specific buffer region that contains the packet's data.

Syntax

  HRESULT GetAllBuffers(
  
  DWORD
  
  dwMaxNumBuffers,

  
  );

Parameters

dwMaxNumBuffers

[in] DWORD containing the maximum number of buffers to retrieve.

pDesc

[out] Pointer to a WMSBUFFERDESC array containing the buffer descriptors.

pdwNumBuffers

[out] Pointer to a DWORD containing the number of buffers retrieved.

dwExFlags

[in] Member of the WMS_PACKET_BUFFER_EX_FLAGS enumeration type. This must be a bitwise OR of one or more of the following values.

Value Description
WMS_BUFFER_COMBINE This buffer should be combined with the list rather than appended.
WMS_BUFFER_NO_ADDREF The reference count for the buffer should not be incremented.
WMS_BUFFER_NO_REFCOUNT No reference count should be kept for this buffer.
WMS_BUFFER_NO_RELEASE The buffer should not be released regardless of reference count.

Return Values

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

Return code Number Description
E_INVALIDARG 0x80070057 pDesc is null.

Requirements

Header: wmspacket.h.

Library: WMSServerTypeLib.dll.

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

See Also

Previous Next