コード例 #1
0
 private static bool FlashWindowEx(Process process, uint duration, uint flags)
 {
     NativeMethods.FLASHWINFO pwfi = default(NativeMethods.FLASHWINFO);
     pwfi.cbSize    = Convert.ToUInt32(Marshal.SizeOf <NativeMethods.FLASHWINFO>(pwfi));
     pwfi.hwnd      = process.MainWindowHandle;
     pwfi.dwFlags   = flags;
     pwfi.uCount    = duration;
     pwfi.dwTimeout = 0u;
     return(NativeMethods.FlashWindowEx(ref pwfi));
 }
コード例 #2
0
 private static extern bool FlashWindowEx(ref NativeMethods.FLASHWINFO pwfi);