mciGetDeviceID

Syntax

WORD FAR PASCAL mciGetDeviceID(lpstrName)

This function retrieves the device ID corresponding to the name of an open MCI device.

Parameters

LPSTR lpstrName

Specifies the device name used to open the MCI device.

Return Value

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

See Also

MCI_OPEN