ACMDM_FILTERTAG_DETAILS

The ACMDM_FILTERTAG_DETAILS message requests an ACM driver to return information about a filter tag.

Parameters

dwDriverID
Driver instance identifier. This is the value returned by the driver in response to the DRV_OPEN message.
hDriver
Driver handle.
uMsg
ACMDM_FILTERTAG_DETAILS
lParam1
Pointer to an ACMFILTERTAGDETAILS structure. (ACMFILTERTAGDETAILS is defined in msacm.h and described in the Win32 SDK.)
lParam2
Contains one of the following flags specified by the fdwDetails parameter of the acmFilterTagDetails function (described in the Win32 SDK):

Flag

Meaning

ACM_FILTERTAGDETAILSF_
INDEX

Indicates the dwFilterTagIndex member of the ACMFILTERTAGDETAILS structure contains a filter tag index. The valid index range is from zero to one less than the cFilterTags member returned in the driver’s ACMDRIVERDETAILS structure. (See ACMDM_DRIVER_DETAILS.)

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

ACM_FILTERTAGDETAILSF_
FILTERTAG

Indicates the dwFilterTag member of the ACMFILTERTAGDETAILS structure contains a filter tag.

The driver should return details for the specified filter tag.

ACM_FILTERTAGDETAILSF_
LARGESTSIZE

Indicates the driver should return details for the filter tag having the largest filter. The dwFilterTag member of ACMFILTERTAGDETAILS can contain a filter tag or WAVE_FILTER_UNKNOWN.

Return Value

The driver should return MMSYSERR_NOERROR if the operation succeeds. Otherwise it should return one of the MMSYSERR error codes defined in mmsystem.h, or one of the ACMERR error codes defined in msacm.h. Possible error codes include:

Error Code

Meaning

MMSYSERR_NOTSUPPORTED

The driver does not support filter operations or the specified query operation.

ACMERR_NOTPOSSIBLE

The input parameter values don’t represent a valid filter or filter tag.

Comments

A client sends the ACMDM_FILTERTAG_DETAILS message by calling the driver’s DriverProc entry point, passing the specified parameters. The ACM sends this message when an application calls acmFilterTagDetails, which is described in the Win32 SDK.

An ACM driver that provides filters must support this message.

The client specifies the filter tag in the ACMFILTERTAGDETAILS structure’s dwFilterTag member. The driver returns information for a particular tag, as follows:

Before calling the driver’s DriverProc function, the ACM verifies that:

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

For more information about filter tags, see Format Tags and Filter Tags.