Windows CE下PlaySound的解决方法

  [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);

  }

你可能感兴趣的:(windows,object,String)