midiOutOpen function Null safety winmm

int midiOutOpen(
  1. Pointer<IntPtr> phmo,
  2. int uDeviceID,
  3. int dwCallback,
  4. int dwInstance,
  5. int fdwOpen
)

The midiOutOpen function opens a MIDI output device for playback.

MMRESULT midiOutOpen(
  LPHMIDIOUT phmo,
  UINT       uDeviceID,
  DWORD_PTR  dwCallback,
  DWORD_PTR  dwInstance,
  DWORD      fdwOpen
);

Implementation

int midiOutOpen(Pointer<IntPtr> phmo, int uDeviceID, int dwCallback,
        int dwInstance, int fdwOpen) =>
    _midiOutOpen(phmo, uDeviceID, dwCallback, dwInstance, fdwOpen);