private void Flash(System.IntPtr hwnd, FlashMode flashMode, int times) { unsafe { FlashInfo FlashInf = new FlashInfo(); FlashInf.cdSize = sizeof(FlashInfo); FlashInf.dwFlags = (int)flashMode; FlashInf.dwTimeout = 0; FlashInf.hwnd = hwnd; FlashInf.uCount = times; FlashWindowEx(ref FlashInf); } }
private static extern int FlashWindowEx(ref FlashInfo pfwi);
private static void Flash(IntPtr hwnd, FlashMode flashMode, int times) { unsafe { var flashInf = new FlashInfo { CdSize = sizeof (FlashInfo), DwFlags = (int) flashMode, DwTimeout = 0, Hwnd = hwnd, UCount = times }; FlashWindowEx(ref flashInf); } }
private void Flash(System.IntPtr hwnd , FlashMode flashMode , int times) { unsafe { FlashInfo FlashInf = new FlashInfo(); FlashInf.cdSize = sizeof(FlashInfo); FlashInf.dwFlags = (int)flashMode; FlashInf.dwTimeout = 0; FlashInf.hwnd = hwnd; FlashInf.uCount = times; FlashWindowEx(ref FlashInf); } }