Microsoft DirectX 8.0 (C++)

IDirectPlayVoiceServer::GetCompressionTypes

Retrieves available compression types for the system.

HRESULT GetCompressionTypes(
PVOID pData,
PDWORD pdwDataSize,
PDWORD pdwNumElements,
DWORD dwFlags
);

Parameters

pData
Pointer to the buffer that receives an array of DVCOMPRESSIONINFO structures that describe the compression types supported by this object.
pdwDataSize
Pointer to a DWORD that contains the size of the buffer, in bytes, passed in the pData parameter.
pdwNumElements
Pointer to a DWORD where the method writes the number of elements returned in the array of DVCOMPRESSIONINFO structures.
dwFlags
Reserved. Must be 0.

Return Values

Returns DV_OK if successful, or one of the following error values.

DVERR_BUFFERTOOSMALL
DVERR_INVALIDFLAGS
DVERR_INVALIDPARAM
DVERR_INVALIDPOINTER

Remarks

If the buffer is not large enough to store the list of compression types, the method returns DVERR_BUFFERTOOSMALL and the pdwDataSize parameter is set to the minimum required size.

Requirements

  Windows NT/2000: Available as a redistributable for Windows 2000 and later.
  Windows 95/98: Available as a redistributable for Windows 95 and later.
  Header: Declared in Dvoice.h.