Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
782 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. globals.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _GLOBALS_H_
  9. #define _GLOBALS_H_
  10. #ifdef DEFINE_GLOBALS
  11. #define GLOBAL
  12. #else
  13. #define GLOBAL extern
  14. #endif
  15. GLOBAL CRITICAL_SECTION g_CriticalSection;
  16. #define BEGIN_CRITICAL_SECTION EnterCriticalSection(&g_CriticalSection);
  17. #define END_CRITICAL_SECTION LeaveCriticalSection(&g_CriticalSection);
  18. GLOBAL HINSTANCE g_hInstance;
  19. GLOBAL LONG g_cObj;
  20. GLOBAL LONG g_cLock;
  21. GLOBAL HWND g_hWndFoster ;
  22. enum {
  23. FOSTER_WNDCLASS = 0,
  24. HATCH_WNDCLASS,
  25. SYSMONCTRL_WNDCLASS,
  26. LEGEND_WNDCLASS,
  27. REPORT_WNDCLASS,
  28. INTRVBAR_WNDCLASS,
  29. TIMERANGE_WNDCLASS
  30. };
  31. #define MAX_WINDOW_CLASSES 7
  32. GLOBAL LPTSTR pstrRegisteredClasses[MAX_WINDOW_CLASSES];
  33. #endif