Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ----------------------------------------------------------------------------
- // <auto-generated>
- // This is autogenerated code by CppSharp.
- // Do not edit this file or all your changes will be lost after re-generation.
- // </auto-generated>
- // ----------------------------------------------------------------------------
- using System;
- using System.Runtime.InteropServices;
- using System.Security;
- namespace ttsmf0
- {
- public unsafe partial class Ttsmf0
- {
- public partial struct __Internal
- {
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_CreateSmf@4")]
- internal static extern global::System.IntPtr CreateSmf(short Timebase);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_DeleteSmf@4")]
- internal static extern int DeleteSmf(global::System.IntPtr hSmf);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_CopySmf@4")]
- internal static extern global::System.IntPtr CopySmf(global::System.IntPtr hSmf);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_SaveSmf@16")]
- internal static extern int SaveSmf(global::System.IntPtr hSmf, sbyte* lpszFileName, uint fdwCreate, uint fdwAttrsAndFlags);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_GetSmfDataSize@8")]
- internal static extern int GetSmfDataSize(global::System.IntPtr hSmf, uint* pDestSize);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_GetSmfData@12")]
- internal static extern int GetSmfData(global::System.IntPtr hSmf, byte* pDest, uint DestSize);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_CopyToClipboard@4")]
- internal static extern int CopyToClipboard(global::System.IntPtr hSmf);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_InsertMidiEvent@16")]
- internal static extern int InsertMidiEvent(global::System.IntPtr hSmf, uint Tick, byte* pData, int DataSize);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_InsertSysexEvent@16")]
- internal static extern int InsertSysexEvent(global::System.IntPtr hSmf, uint Tick, byte* pData, int DataSize);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_InsertMetaEvent@20")]
- internal static extern int InsertMetaEvent(global::System.IntPtr hSmf, uint Tick, byte MetaType, byte* pData, int DataSize);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_cal_insert_Note@24")]
- internal static extern int CalInsertNote(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Key, int Velocity, uint Duration);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_cal_insert_KeyAft@20")]
- internal static extern int CalInsertKeyAft(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Key, int Amount);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_cal_insert_Control@20")]
- internal static extern int CalInsertControl(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int ControlNumber, int Value);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_cal_insert_ChanAft@16")]
- internal static extern int CalInsertChanAft(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Amount);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_cal_insert_Patch@20")]
- internal static extern int CalInsertPatch(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int PatchNumber, int BankNumber);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_cal_insert_Wheel@16")]
- internal static extern int CalInsertWheel(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Value);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_calex_insert_RPN@20")]
- internal static extern int CalexInsertRPN(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Number, int Value);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_calex_insert_NRPN@20")]
- internal static extern int CalexInsertNRPN(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Number, int Value);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_calex_insert_Sysx@12")]
- internal static extern int CalexInsertSysx(global::System.IntPtr hSmf, uint Tick, sbyte* lpszSysx);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_calex_insert_Text@12")]
- internal static extern int CalexInsertText(global::System.IntPtr hSmf, uint Tick, sbyte* lpszText);
- [SuppressUnmanagedCodeSecurity]
- [DllImport("ttsmf0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.StdCall,
- EntryPoint="_calex_insert_Lyric@12")]
- internal static extern int CalexInsertLyric(global::System.IntPtr hSmf, uint Tick, sbyte* lpszLyric);
- }
- public static global::System.IntPtr CreateSmf(short Timebase)
- {
- var __ret = __Internal.CreateSmf(Timebase);
- return __ret;
- }
- public static int DeleteSmf(global::System.IntPtr hSmf)
- {
- var __ret = __Internal.DeleteSmf(hSmf);
- return __ret;
- }
- public static global::System.IntPtr CopySmf(global::System.IntPtr hSmf)
- {
- var __ret = __Internal.CopySmf(hSmf);
- return __ret;
- }
- public static int SaveSmf(global::System.IntPtr hSmf, sbyte* lpszFileName, uint fdwCreate, uint fdwAttrsAndFlags)
- {
- var __ret = __Internal.SaveSmf(hSmf, lpszFileName, fdwCreate, fdwAttrsAndFlags);
- return __ret;
- }
- public static int GetSmfDataSize(global::System.IntPtr hSmf, ref uint pDestSize)
- {
- fixed (uint* __refParamPtr1 = &pDestSize)
- {
- var __arg1 = __refParamPtr1;
- var __ret = __Internal.GetSmfDataSize(hSmf, __arg1);
- return __ret;
- }
- }
- public static int GetSmfData(global::System.IntPtr hSmf, byte* pDest, uint DestSize)
- {
- var __ret = __Internal.GetSmfData(hSmf, pDest, DestSize);
- return __ret;
- }
- public static int CopyToClipboard(global::System.IntPtr hSmf)
- {
- var __ret = __Internal.CopyToClipboard(hSmf);
- return __ret;
- }
- public static int InsertMidiEvent(global::System.IntPtr hSmf, uint Tick, byte* pData, int DataSize)
- {
- var __ret = __Internal.InsertMidiEvent(hSmf, Tick, pData, DataSize);
- return __ret;
- }
- public static int InsertSysexEvent(global::System.IntPtr hSmf, uint Tick, byte* pData, int DataSize)
- {
- var __ret = __Internal.InsertSysexEvent(hSmf, Tick, pData, DataSize);
- return __ret;
- }
- public static int InsertMetaEvent(global::System.IntPtr hSmf, uint Tick, byte MetaType, byte* pData, int DataSize)
- {
- var __ret = __Internal.InsertMetaEvent(hSmf, Tick, MetaType, pData, DataSize);
- return __ret;
- }
- public static int CalInsertNote(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Key, int Velocity, uint Duration)
- {
- var __ret = __Internal.CalInsertNote(hSmf, Tick, MidiChannel, Key, Velocity, Duration);
- return __ret;
- }
- public static int CalInsertKeyAft(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Key, int Amount)
- {
- var __ret = __Internal.CalInsertKeyAft(hSmf, Tick, MidiChannel, Key, Amount);
- return __ret;
- }
- public static int CalInsertControl(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int ControlNumber, int Value)
- {
- var __ret = __Internal.CalInsertControl(hSmf, Tick, MidiChannel, ControlNumber, Value);
- return __ret;
- }
- public static int CalInsertChanAft(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Amount)
- {
- var __ret = __Internal.CalInsertChanAft(hSmf, Tick, MidiChannel, Amount);
- return __ret;
- }
- public static int CalInsertPatch(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int PatchNumber, int BankNumber)
- {
- var __ret = __Internal.CalInsertPatch(hSmf, Tick, MidiChannel, PatchNumber, BankNumber);
- return __ret;
- }
- public static int CalInsertWheel(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Value)
- {
- var __ret = __Internal.CalInsertWheel(hSmf, Tick, MidiChannel, Value);
- return __ret;
- }
- public static int CalexInsertRPN(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Number, int Value)
- {
- var __ret = __Internal.CalexInsertRPN(hSmf, Tick, MidiChannel, Number, Value);
- return __ret;
- }
- public static int CalexInsertNRPN(global::System.IntPtr hSmf, uint Tick, int MidiChannel, int Number, int Value)
- {
- var __ret = __Internal.CalexInsertNRPN(hSmf, Tick, MidiChannel, Number, Value);
- return __ret;
- }
- public static int CalexInsertSysx(global::System.IntPtr hSmf, uint Tick, sbyte* lpszSysx)
- {
- var __ret = __Internal.CalexInsertSysx(hSmf, Tick, lpszSysx);
- return __ret;
- }
- public static int CalexInsertText(global::System.IntPtr hSmf, uint Tick, sbyte* lpszText)
- {
- var __ret = __Internal.CalexInsertText(hSmf, Tick, lpszText);
- return __ret;
- }
- public static int CalexInsertLyric(global::System.IntPtr hSmf, uint Tick, sbyte* lpszLyric)
- {
- var __ret = __Internal.CalexInsertLyric(hSmf, Tick, lpszLyric);
- return __ret;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement