mciGetDeviceIDFromElementID function Null safety winmm
The mciGetDeviceIDFromElementID function retrieves the MCI device identifier corresponding to an element identifier.
MCIDEVICEID mciGetDeviceIDFromElementIDW(
DWORD dwElementID,
LPCTSTR lpstrType
);
Implementation
int mciGetDeviceIDFromElementID(int dwElementID, Pointer<Utf16> lpstrType) {
final _mciGetDeviceIDFromElementID = _winmm.lookupFunction<
Uint32 Function(Uint32 dwElementID, Pointer<Utf16> lpstrType),
int Function(int dwElementID,
Pointer<Utf16> lpstrType)>('mciGetDeviceIDFromElementIDW');
return _mciGetDeviceIDFromElementID(dwElementID, lpstrType);
}