Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 889 Bytes

mciGetDeviceID.md

File metadata and controls

45 lines (29 loc) · 889 Bytes

Home

Function name : mciGetDeviceID

Group: Windows Multimedia - Library: winmm


Retrieves the device identifier corresponding to the name of an open device.


Declaration:

MCIDEVICEID mciGetDeviceID(
	LPCTSTR lpszDevice
);  

FoxPro declaration:

DECLARE INTEGER mciGetDeviceID IN winmm STRING lpszDevice  

Parameters:

lpszDevice Pointer to a null-terminated string that specifies the device name or the alias name by which the device is known.


Return value:

Returns the device identifier assigned to the device when it was opened if successful. Otherwise the return value is zero.


Comments:

The identifier is used in the mciSendCommand function.

See also: mciSendCommand, mciSendString