public static MidiFont[] StreamGetFonts(int handle, int count) { var arr = new MidiFont[count]; var gch = GCHandle.Alloc(arr, GCHandleType.Pinned); StreamGetFonts(handle, gch.AddrOfPinnedObject(), count); gch.Free(); return(arr); }
public static extern int StreamSetFonts(int handle, MidiFont fonts, int count);