110,537
社区成员
发帖
与我相关
我的任务
分享
using System.Runtime.InteropServices;
[DllImport("winmm.dll")]
public static extern bool PlaySound(string pszSound, int hmod, int fdwSound);
public const int SND_FILENAME = 0x00020000;
public const int SND_ASYNC = 0x0001;
private void GetSound(object sender, EventArgs e)
{
PlaySound("folder.wav", 0, SND_ASYNC|SND_FILENAME);
}
System.Media.SoundPlayer