Microsoft DirectX 9.0

IDirectPlayVoiceServer::GetCompressionTypes Method

Retrieves available compression types for the system.


HRESULT GetCompressionTypes(      

    PVOID pData,     PDWORD pdwDataSize,     PDWORD pdwNumElements,     DWORD dwFlags );


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

Return Value

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

DVERR_BUFFERTOOSMALLThe supplied buffer is not large enough to contain the requested data.
DVERR_INVALIDFLAGSThe flags passed to this method are invalid.
DVERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DVERR_INVALIDPOINTERThe pointer specified is invalid.


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.

© 2002 Microsoft Corporation. All rights reserved.