WORD FAR PASCAL mciGetDeviceID(lpstrName)
This function retrieves the device ID corresponding to the name of an open MCI device.
LPSTR lpstrName
Specifies the device name used to open the MCI device.
Returns the device ID assigned when the device was opened. Returns zero if the device name isn't known, if the device isn't open, or if there was insufficient memory to complete the operation. Each compound device element has a unique device ID. The ID of the “all” device is MCI_ALL_DEVICE_ID
MCI_OPEN