midiInGetErrorText function Null safety winmm

int midiInGetErrorText(
  1. int mmrError,
  2. Pointer<Utf16> pszText,
  3. int cchText

The midiInGetErrorText function retrieves a textual description for an error identified by the specified error code.

MMRESULT midiInGetErrorTextW(
  MMRESULT mmrError,
  LPWSTR   pszText,
  UINT     cchText


int midiInGetErrorText(int mmrError, Pointer<Utf16> pszText, int cchText) =>
    _midiInGetErrorText(mmrError, pszText, cchText);