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.

107 lines
3.7 KiB

  1. // Copyright (C) 1996-1997 Microsoft Corporation. All rights reserved.
  2. // This module contains global data variables
  3. #include "header.h"
  4. BOOL g_fMachineHasLicense;
  5. BOOL g_fCheckedForLicense;
  6. BOOL g_fServerHasTypeLibrary = TRUE;
  7. HINSTANCE g_hinstOcx;
  8. VARIANT_BOOL g_fHaveLocale;
  9. BOOL g_fSysWin95; // we're under Win95 system, not just NT SUR
  10. BOOL g_fSysWinNT; // we're under some form of Windows NT
  11. BOOL g_fSysWin95Shell; // we're under Win95 or Windows NT SUR { > 3/51)
  12. BOOL g_bWinNT5 = FALSE; // we're under NT5
  13. BOOL g_bWin98 = FALSE; // we're under Win98
  14. BOOL g_fBiDi; // TRUE if this is a BiDi title
  15. BOOL g_fRegisteredSpash; // TRUE if Splash window has been registered
  16. BOOL g_bBiDiUi; // TRUE when we have a localized Hebrew or Arabic UI
  17. BOOL g_bArabicUi; // TRUE when we have a Arabic UI
  18. DWORD g_RTL_Mirror_Style; // Bi-Di RTL style (Win98 & NT5 only)
  19. DWORD g_RTL_Style; // Bi-Di RTL style
  20. HMODULE g_hmodHHA = 0; // HHA.dll module handle
  21. HMODULE g_hmodMSI; // msi.dll module handle
  22. BOOL g_fTriedHHA = 0; // whether or not we tried to find HHA.dll
  23. BOOL g_fDBCSSystem;
  24. LCID g_lcidSystem;
  25. LANGID g_langSystem;
  26. HWND g_hwndParking;
  27. BOOL g_fDualCPU = -1; // will be TRUE or FALSE when initialized
  28. BOOL g_fThreadRunning; // TRUE if our thread is doing something
  29. WORD g_defcharset;
  30. HBITMAP g_hbmpSplash;
  31. HPALETTE g_hpalSplash;
  32. HWND g_hwndSplash;
  33. BOOL g_fNonFirstKey; // accept keyboard entry for non-first level index keys
  34. BOOL g_bMsItsMonikerSupport = FALSE; // "ms-its:" moniker supported starting with IE 4
  35. BOOL g_fCoInitialized; // means we called CoInitialize()
  36. BOOL g_fIE3 = TRUE; // affects which features we can support
  37. // ref count for LockServer
  38. LONG g_cLocks;
  39. // These are used for reflection in OLE Controls. Not that big of a hit that
  40. // we mind defining them for all servers, including automation or generic
  41. // COM.
  42. // Following is global data for windowing
  43. int g_cWindowSlots; // current number of allocated window slots
  44. int g_curHmData; // current title collection
  45. int g_cHmSlots; // number of CHmData slots available
  46. RECT g_rcWorkArea;
  47. int g_cxScreen;
  48. int g_cyScreen;
  49. BOOL g_fOleInitialized;
  50. CRITICAL_SECTION g_cs; // per-instance
  51. UINT g_fuBiDiMessageBox;
  52. UINT MSG_MOUSEWHEEL;
  53. HCURSOR hcurRestore;
  54. HCURSOR hcurWait;
  55. #ifndef VSBLDENV
  56. #ifndef RISC
  57. extern "C" const int _fltused = 0;
  58. #endif
  59. #endif
  60. const char txtInclude[] = ":include";
  61. const char txtFileHeader[] = "file:";
  62. const char txtHttpHeader[] = "http:";
  63. const char txtFtpHeader[] = "ftp:";
  64. const char txtZeroLength[] = "";
  65. const char txtHtmlHelpWindowClass[] = "HH Parent";
  66. const char txtHtmlHelpChildWindowClass[] = "HH Child";
  67. const char txtSizeBarChildWindowClass[] = "HH SizeBar";
  68. //const char txtHtmlHelpNavigationClass[] = "HH Navigation Frame" ; // TODO: Make a window class for the nav frame.
  69. const char txtSysRoot[] = "%SystemRoot%";
  70. const char txtMkStore[] = "mk:@MSITStore:";
  71. const char txtItsMoniker[] = "its:";
  72. const char txtMsItsMoniker[] = "ms-its:";
  73. const char txtHlpDir[] = "Help";
  74. const char txtOpenCmd[] = "htmlfile\\shell\\open\\command";
  75. const char txtDoubleColonSep[] = "::";
  76. const char txtSepBack[] = "::/";
  77. const char txtDefExtension[] = ".chm";
  78. const char txtCollectionExtension[] = ".col";
  79. const char txtChmColon[] = ".chm::";
  80. const char txtDefFile[] = "::/default.htm";
  81. const char g_szReflectClassName[] = "CtlFrameWork_ReflectWindow";
  82. // Internal window defs.
  83. const char txtDefWindow[] = ">hhwin";
  84. const char txtGlobalDefWindow[] = ">$global_hhwin";
  85. // Special window types --- filename is ignored.
  86. const char txtPrintWindow[] = ">$global_hhPrint";
  87. #include "sysnames.cpp"