28 references to NativeMethods
System (28)
sys\system\Media\SoundPlayer.cs (28)
279UnsafeNativeMethods.PlaySound(localPath, IntPtr.Zero, NativeMethods.SND_NODEFAULT | flags); 290UnsafeNativeMethods.PlaySound(streamData, IntPtr.Zero, NativeMethods.SND_MEMORY | NativeMethods.SND_NODEFAULT | flags); 375LoadAndPlay(NativeMethods.SND_ASYNC); 380LoadAndPlay(NativeMethods.SND_SYNC); 385LoadAndPlay(NativeMethods.SND_LOOP | NativeMethods.SND_ASYNC); 457UnsafeNativeMethods.PlaySound((byte[]) null, IntPtr.Zero, NativeMethods.SND_PURGE); 567NativeMethods.MMCKINFO ckRIFF = new NativeMethods.MMCKINFO(); 568NativeMethods.MMCKINFO ck = new NativeMethods.MMCKINFO(); 569NativeMethods.WAVEFORMATEX waveFormat = null; 572IntPtr hMIO = UnsafeNativeMethods.mmioOpen(fileName, IntPtr.Zero, NativeMethods.MMIO_READ | NativeMethods.MMIO_ALLOCBUF); 579if (UnsafeNativeMethods.mmioDescend(hMIO, ckRIFF, null, NativeMethods.MMIO_FINDRIFF) != 0) 589if (dw < Marshal.SizeOf(typeof(NativeMethods.WAVEFORMATEX))) 590dw = Marshal.SizeOf(typeof(NativeMethods.WAVEFORMATEX)); 592waveFormat = new NativeMethods.WAVEFORMATEX(); 611if (waveFormat.wFormatTag != NativeMethods.WAVE_FORMAT_PCM && 612waveFormat.wFormatTag != NativeMethods.WAVE_FORMAT_ADPCM && 613waveFormat.wFormatTag != NativeMethods.WAVE_FORMAT_IEEE_FLOAT) 681if (wFormatTag != NativeMethods.WAVE_FORMAT_PCM && 682wFormatTag != NativeMethods.WAVE_FORMAT_ADPCM && 683wFormatTag != NativeMethods.WAVE_FORMAT_IEEE_FLOAT) 800internal static extern int mmioAscend(IntPtr hMIO, NativeMethods.MMCKINFO lpck, int flags); 805[MarshalAs(UnmanagedType.LPStruct)] NativeMethods.MMCKINFO lpck, 806[MarshalAs(UnmanagedType.LPStruct)] NativeMethods.MMCKINFO lcpkParent,