[DllImport("Coredll.dll")]这里需要注意的是不是[DllImport("Wimm.dll")]
public static extern bool PlaySound(string pszSound, IntPtr hmod, UInt32 fdwSound);
private void btnPlay_Click(object sender, System.EventArgs e)
{
PlaySound("ding.wav", IntPtr.Zero, 1);
}