PC喇叭响和任务栏闪烁

PC喇叭响

using System.Runtime.InteropServices;
[DllImport("user32.dll")]
public static extern bool MessageBeep(uint uType);
MessageBeep(1);//PC喇叭响

任务栏闪烁

using System.Runtime.InteropServices;
//--------------------------
[DllImport("user32.dll")]
public static extern bool FlashWindow(
   IntPtr hWnd,     // handle to window
   bool bInvert   // flash status
   );
//----------------------------------
FlashWindow(handle, true);//闪烁
Contributors: FHL