mixerGetDevCapsA function (mmeapi.h)
The mixerGetDevCaps function queries a specified mixer device to determine its capabilities.
Syntax
MMRESULT mixerGetDevCapsA(
UINT_PTR uMxId,
LPMIXERCAPSA pmxcaps,
UINT cbmxcaps
);
Parameters
uMxId
Identifier or handle of an open mixer device.
pmxcaps
Pointer to a MIXERCAPS structure that receives information about the capabilities of the device.
cbmxcaps
Size, in bytes, of the MIXERCAPS structure.
Return value
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.
Return code | Description |
---|---|
|
The specified device identifier is out of range. |
|
The mixer device handle is invalid. |
|
One or more parameters are invalid. |
Remarks
Use the mixerGetNumDevs function to determine the number of mixer devices present in the system. The device identifier specified by uMxId varies from zero to one less than the number of mixer devices present.
Only the number of bytes (or less) of information specified in cbmxcaps is copied to the location pointed to by pmxcaps. If cbmxcaps is zero, nothing is copied, and the function returns successfully.
This function also accepts a mixer device handle returned by the mixerOpen function as the uMxId parameter. The application should cast the HMIXER handle to a UINT.
Note
The mmeapi.h header defines mixerGetDevCaps as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | mmeapi.h (include Windows.h) |
Library | Winmm.lib |
DLL | Winmm.dll |