摘要:
using System;using System.Runtime.InteropServices;public class WAVSounds{ [DllImport("WinMM.dll")] public static extern bool PlaySound(byte[]wfname, int fuSound); public int SND_SYNC = 0x0000; public int SND_ASYNC = 0x0001; public int SND_NODEFAULT = 0x0002; public int SND_MEMORY = 0x0004; 阅读全文
摘要:
' Declarations...' Play Sound flagsPrivate Const SND_ASYNC As Integer = &H1Private Const SND_LOOP As Integer = &H8Private Const SND_MEMORY As Integer = &H4Private Const SND_NODEFAULT As Integer = &H2Private Const SND_NOSTOP As Integer = &H10Private Const SND_SYNC As Integ 阅读全文