函数调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。

改 [DllImport("winmm.dll", EntryPoint = "sndPlaySoundA",)]
  为[DllImport("winmm.dll", EntryPoint = "sndPlaySoundA", CallingConvention = CallingConvention.Cdecl)]
posted @ 2011-10-09 12:47  ColdFish_Pegasus  阅读(2242)  评论(0编辑  收藏  举报