Wince 发声

[DllImport("coredll.dll",
EntryPoint = "MessageBeep",
CharSet = CharSet.Unicode,
CallingConvention = CallingConvention.Winapi)]
//音效
public static extern bool MessageBeep(int type); 

MessageBeep(1);

//发出不同类型的声音的参数如下:   
  uint Ok = 0x00000000;  
  uint Error = 0x00000010;   
  uint Question = 0x00000020;   
  uint Warning = 0x00000030;
  uint Information = 0x00000040;  


 

你可能感兴趣的:(Wince 发声)