ACMDM_FILTERTAG_DETAILS

This message requests an ACM driver to return information about a filter tag, in the form of an ACMFILTERTAGDETAILS structure.

Parameters

dwDriverID
Specifies a driver instance identifier. The driver returns this value in response to the ACM_Open function.
hDriver
Handle to a driver.
uMsg
Specifies this message.
lParam1
Pointer to an ACMFILTERTAGDETAILS structure. ACMFILTERTAGDETAILS is declared in the Msacm.h header file.
lParam2
Contains one of the following flags specified by the fdwDetails parameter of the acmFilterTagDetails:
ACM_FILTERTAGDETAILSF_INDEX
Indicates that the dwFilterTagIndex member of ACMFILTERTAGDETAILS contains a filter tag index. The valid index range is from 0 to 1 less than the cFilterTags member returned in the driver’s ACMDRIVERDETAILS structure.

The driver should return details for the filter tag associated with the index.

ACM_FILTERTAGDETAILSF_FILTERTAG
Indicates that the dwFilterTag member of ACMFILTERTAGDETAILS contains a filter tag.

The driver returns details for the specified filter tag.

ACM_FILTERTAGDETAILSF_LARGESTSIZE
Indicates that the driver returns details for the filter tag with the largest filter. The dwFilterTag member of ACMFILTERTAGDETAILS can contain a filter tag or WAVE_FILTER_UNKNOWN.

Return Values

MMSYSERR_NOERROR indicates success. Otherwise, the driver returns one of the MMSYSERR error values declared in the Mmsystem.h header file or one of the ACMERR error values declared in the Msacm.h header file. The following are possible error values.

MMSYSERR_NOTSUPPORTED
The driver does not support filter operations or the specified query operation.
ACMERR_NOTPOSSIBLE
The input parameter values do not represent valid filters or filter tags.

Remarks

The ACM (Waveapi.dll) sends the ACMDM_FILTERTAG_DETAILS message by calling the ACM driver’s ACM_IOControl entry point through the DeviceIoControl function. The ACM sends this message when an application calls the acmFilterTagDetails function.

An ACM driver that provides filters must support this message.

The client specifies the filter tag in the dwFilterTag member of ACMFILTERTAGDETAILS. The driver returns the following information for a particular tag:

Before calling the driver’s ACM_IOControl function, the ACM verifies the following conditions:

Before returning, the driver must set the cbStruct member of ACMFILTERTAGDETAILS to the actual number of bytes returned. The value returned in cbStruct must not be greater than the value received.

For more information about format tags and filter tags, see the Windows NT DDK.

See Also

ACMDM_DRIVER_DETAILS