mciGetDriverData

DWORD APIENTRY
   mciGetDriverData(
   MCIDEVICEID
wDeviceID
   );

The mciGetDriverData function returns instance-specific information that was set with mciSetDriverData.

Parameters

wDeviceID

Specifies the MCI device ID.

Return Value

Returns the driver instance information. Returns zero if an error occurs.

Comments

A driver can test for an error return only when the valid value is known to be nonzero, if, for example, the driver had previously called mciSetDriverData and specified a pointer value. If the driver has set the instance information to zero with mciSetDriverData, then it cannot test for an error return from mciGetDriverData.