mciGetErrorString

[DllImport("winmm.dll", SetLastError = true)]
public static extern uint mciGetErrorString(
   uint fdwError,
   StringBuilder lpszErrorText,
   uint cchErrorText
);

Microsoft documentation: Link

Last updated