The ACMDM_FILTER_DETAILS message requests an ACM driver to return information about a filter associated with a specified filter tag.
Flag |
Meaning |
ACM_FILTERDETAILSF_INDEX |
Indicates the dwFilterIndex member of the ACMFILTERDETAILS structure contains a filter index. The valid index range is from zero to one less than the cStandardFilters member returned in the ACMFILTERTAGDETAILS structure for the filter tag. (See ACMDM_FILTERTAG_DETAILS.) |
ACM_FILTERDETAILSF_FILTER |
Indicates the client has filled in the WAVEFILTER structure associated with the ACMFILTERDETAILS structure. |
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 do not represent a valid filter or filter tag. |
A client sends the ACMDM_FILTER_DETAILS message by calling the driver’s DriverProc entry point, passing the specified parameters. The ACM sends this message when an application calls acmFilterDetails, which is described in the Win32 SDK.
An ACM driver that provides filters must support this message.
The client can do either of the following:
The client specifies the filter tag in the ACMFILTERDETAILS structure’s dwFilterTag member. The driver returns information for a particular filter belonging to the filter tag, as follows:
Before calling the driver’s DriverProc function, the ACM verifies that:
Before returning, the driver must set the ACMFILTERDETAILS structure’s cbStruct member to the actual number of bytes returned. The value returned in cbStruct must not be greater than the value received from the client.
For more information about filter tags and filter structures, see Format Tags and Filter Tags and Defining Format Structures and Filter Structures.
The WAVEFILTER structure is a generic structure for describing a filter. Generally, you will extend this structure for your specific filter type, as has been done in the Microsoft Audio Filter. (For examples, see VOLUMEWAVEFILTER and ECHOWAVEFILTER in mmreg.h.) When a client sends an ACMDM_FILTER_DETAILS message, it specifies the address of a structure that you have defined for the specified filter type. This structure is typically larger than the generic WAVEFILTER structure.