mciGetDeviceID function Null safety winmm

int mciGetDeviceID(
  1. Pointer<Utf16> pszDevice
)

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

MCIDEVICEID mciGetDeviceIDW(
  LPCTSTR lpszDevice
);

Implementation

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