Leaked source code of windows server 2003
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.

80 lines
2.6 KiB

  1. //=--------------------------------------------------------------------------=
  2. // Globals.cpp
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1995 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // contains global variables and strings and the like that just don't fit
  13. // anywhere else.
  14. //
  15. #include "pch.h"
  16. //=--------------------------------------------------------------------------=
  17. // support for licensing
  18. //
  19. BOOL g_fMachineHasLicense;
  20. BOOL g_fCheckedForLicense;
  21. //=--------------------------------------------------------------------------=
  22. // does our server have a type library?
  23. //
  24. BOOL g_fServerHasTypeLibrary = TRUE;
  25. #ifdef MDAC_BUILD
  26. // Satellite .DLL name includes 2 or 3 letter language abbreviation
  27. //
  28. VARIANT_BOOL g_fSatelliteLangExtension = TRUE;
  29. #endif
  30. //=--------------------------------------------------------------------------=
  31. // our instance handles
  32. //
  33. HINSTANCE g_hInstance;
  34. HINSTANCE g_hInstResources;
  35. VARIANT_BOOL g_fHaveLocale;
  36. //=--------------------------------------------------------------------------=
  37. // OleAut Library Handle
  38. //
  39. #ifdef MDAC_BUILD
  40. HINSTANCE g_hOleAutHandle;
  41. #else
  42. HANDLE g_hOleAutHandle;
  43. #endif
  44. //=--------------------------------------------------------------------------=
  45. // our global memory allocator and global memory pool
  46. //
  47. HANDLE g_hHeap;
  48. //=--------------------------------------------------------------------------=
  49. // apartment threading support.
  50. //
  51. CRITICAL_SECTION g_CriticalSection;
  52. //=--------------------------------------------------------------------------=
  53. // critical section for our heap memory leak detection.
  54. //
  55. CRITICAL_SECTION g_csHeap;
  56. BOOL g_fInitCrit = FALSE;
  57. BOOL g_flagConstructorAlloc = FALSE;
  58. //=--------------------------------------------------------------------------=
  59. // global parking window for parenting various things.
  60. //
  61. HWND g_hwndParking;
  62. //=--------------------------------------------------------------------------=
  63. // system information
  64. //
  65. BOOL g_fSysWin95; // we're under Win95 system, not just NT SUR
  66. BOOL g_fSysWinNT; // we're under some form of Windows NT
  67. BOOL g_fSysWin95Shell; // we're under Win95 or Windows NT SUR { > 3/51)