mciSendCommand function Null safety winmm

int mciSendCommand (
  1. int IDDevice,
  2. int uMsg,
  3. int fdwCommand,
  4. int dwParam

The mciSendCommand function sends a command message to the specified MCI device.

MCIERROR mciSendCommandW(
  UINT        uMsg,
  DWORD_PTR   fdwCommand,
  DWORD_PTR   dwParam


int mciSendCommand(int IDDevice, int uMsg, int fdwCommand, int dwParam) {
  final _mciSendCommand = _winmm.lookupFunction<
      Uint32 Function(
          Uint32 IDDevice, Uint32 uMsg, IntPtr fdwCommand, IntPtr dwParam),
      int Function(int IDDevice, int uMsg, int fdwCommand,
          int dwParam)>('mciSendCommandW');
  return _mciSendCommand(IDDevice, uMsg, fdwCommand, dwParam);