MCI_GETDEVCAPS

The MCI_GETDEVCAPS message requests an MCI driver to return device capabilities information.

Parameters
dwDriverID
Driver instance identifier. This is the value returned by the driver in response to the DRV_OPEN message.
hDriver
Driver handle.
uMsg
MCI_GETDEVCAPS
lParam1
Contains the flags specified by the application.
lParam2
Specifies a pointer to an MCI_GETDEVCAPS_PARMS structure, or to a customized structure.
Return Value

If the operation succeeds, the driver returns zero. Otherwise, the driver returns one of tbe MCIERR error codes defined in mmsystem.h.

Comments

A client sends the message by calling the driver’s DriverProc entry point, passing the specified parameters.

A driver tests lParam1 to determine the type of information to return. The driver returns the requested information in the structure pointed to by lParam2. Refer to the Win32 SDK description of MCI_GETDEVCAPS to determine the types of information the driver should return.

See Also

Providing Device Information