Author: gedmurphy
Date: Fri May 25 00:48:20 2007
New Revision: 26881
URL:
http://svn.reactos.org/svn/reactos?rev=26881&view=rev
Log:
add a tool to allow the RosBE cmd window to flash when the build has stopped.
Added:
trunk/tools/RosBE-Windows/Tools/flash.c
Added: trunk/tools/RosBE-Windows/Tools/flash.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/flash.c?…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/flash.c (added)
+++ trunk/tools/RosBE-Windows/Tools/flash.c Fri May 25 00:48:20 2007
@@ -1,0 +1,47 @@
+#include <windows.h>
+
+HWND GetConsoleHwnd(void)
+{
+ WCHAR szNewTitle[MAX_PATH];
+ WCHAR szOldTitle[MAX_PATH];
+ HWND hwnd = NULL;
+
+ if (GetConsoleTitleW(szOldTitle, MAX_PATH))
+ {
+ wsprintfW(szNewTitle,
+ L"%d/%d",
+ GetTickCount(),
+ GetCurrentProcessId());
+
+ if (SetConsoleTitleW(szNewTitle))
+ {
+ Sleep(40);
+
+ hwnd = FindWindowW(NULL, szNewTitle);
+
+ SetConsoleTitleW(szOldTitle);
+ }
+ }
+
+ return hwnd;
+}
+
+
+int main()
+{
+ HWND hwnd;
+ FLASHWINFO fwi = {0,};
+
+ hwnd = GetConsoleHwnd();
+ if (hwnd)
+ {
+ fwi.cbSize = sizeof(FLASHWINFO);
+ fwi.hwnd = hwnd;
+ fwi.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
+ fwi.uCount = 20;
+
+ FlashWindowEx(&fwi);
+ }
+
+ return 0;
+}