guihead.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Launch4j (http://launch4j.sourceforge.net/)
  3. Cross-platform Java application wrapper for creating Windows native executables.
  4. Copyright (c) 2004, 2007 Grzegorz Kowal
  5. Permission is hereby granted, free of charge, to any person obtaining a copy
  6. of this software and associated documentation files (the "Software"), to deal
  7. in the Software without restriction, including without limitation the rights
  8. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. copies of the Software, and to permit persons to whom the Software is
  10. furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice shall be included in
  12. all copies or substantial portions of the Software.
  13. Except as contained in this notice, the name(s) of the above copyright holders
  14. shall not be used in advertising or otherwise to promote the sale, use or other
  15. dealings in this Software without prior written authorization.
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  22. THE SOFTWARE.
  23. */
  24. #define ID_TIMER 1
  25. #define DEFAULT_SPLASH_TIMEOUT 60 /* 60 seconds */
  26. #define MAX_SPLASH_TIMEOUT 60 * 15 /* 15 minutes */
  27. #define TIMER_PROC_INTERVAL 100 /* interval in ms between calls to EnumWindows */
  28. HWND getInstanceWindow();
  29. BOOL CALLBACK enumwndfn(HWND hwnd, LPARAM lParam);
  30. VOID CALLBACK TimerProc(
  31. HWND hwnd, // handle of window for timer messages
  32. UINT uMsg, // WM_TIMER message
  33. UINT idEvent, // timer identifier
  34. DWORD dwTime // current system time
  35. );