private void Flash(IntPtr hwnd, FlashMode fm, int times) { unsafe { FlashInfo FI = new FlashInfo(); FI.cd_size = sizeof(FlashInfo); FI.dw_flags = (int)fm; FI.dw_timeout = 0; FI.hwnd = hwnd; FI.u_count = times; FlashWindowEx(ref FI); } }
private static extern int FlashWindowEx(ref FlashInfo fi);