123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- using System;
- using System.Runtime.InteropServices;
- namespace Microsoft.Win32
- {
-
-
-
- public static partial class UnsafeNativeMethods
- {
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern bool mciGetErrorString(int fdwError, ref string lpszErrorText, uint cchErrorText);
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern int mciSendString(string lpszCommand, ref string lpszReturnString, uint cchReturn, IntPtr hwndCallback);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern int mmioAscend(IntPtr hMIO, NativeMethods.MMCKINFO lpck, int flags);
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern int mmioClose(IntPtr hMIO, int flags);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern int mmioDescend(IntPtr hMIO, [MarshalAs(UnmanagedType.LPStruct)] NativeMethods.MMCKINFO lpck, [MarshalAs(UnmanagedType.LPStruct)] NativeMethods.MMCKINFO lcpkParent, int flags);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern IntPtr mmioOpen(string fileName, IntPtr not_used, int flags);
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern int mmioRead(IntPtr hMIO, [MarshalAs(UnmanagedType.LPArray)] byte[] wf, int cch);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto)]
- public static extern bool PlaySound([MarshalAs(UnmanagedType.LPWStr)] string soundName, IntPtr hmod, int soundFlags);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
- public static extern bool PlaySound(byte[] soundName, IntPtr hmod, int soundFlags);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [DllImport("winmm.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
- public static extern bool PlaySound(IntPtr pszSound, IntPtr hMod, uint fdwSound);
- }
- }
|