mciGetDeviceID function Null safety winmm

int mciGetDeviceID (
  1. Pointer<Utf16> lpszDevice
)

The mciGetDeviceID function retrieves the device identifier corresponding to the name of an open device.

MCIDEVICEID mciGetDeviceIDW(
  LPCTSTR lpszDevice
);

Implementation

int mciGetDeviceID(Pointer<Utf16> lpszDevice) {
  final _mciGetDeviceID = _winmm.lookupFunction<
      Uint32 Function(Pointer<Utf16> lpszDevice),
      int Function(Pointer<Utf16> lpszDevice)>('mciGetDeviceIDW');
  return _mciGetDeviceID(lpszDevice);
}