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.

75 lines
2.4 KiB

  1. //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
  2. //
  3. // globals.cpp
  4. //
  5. // Contains *all* of the global variables used in cdfview. Globals shouldn't
  6. // be declared elsewhere.
  7. //
  8. // History:
  9. //
  10. // 3/16/97 edwardp Created.
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. //
  14. // Includes
  15. //
  16. #include "stdinc.h"
  17. //
  18. // Global variables.
  19. //
  20. // Remove shared memory segment. This must be removed so w2k can get a c2
  21. // security rating. It should no longer be rquired because the cache is
  22. // going to be limited to one item.
  23. //
  24. //#pragma data_seg("SharedData")
  25. DWORD g_dwCacheCount = 0;
  26. //#pragma data_seg()
  27. HINSTANCE g_msxmlInst = NULL;
  28. #ifndef UNIX
  29. /* Unix does not use webcheck */
  30. HINSTANCE g_webcheckInst = NULL;
  31. #endif /* UNIX */
  32. HINSTANCE g_hinst = NULL;
  33. ULONG g_cDllRef = 0;
  34. PCACHEITEM g_pCache = NULL;
  35. CRITICAL_SECTION g_csCache;
  36. TCHAR g_szModuleName[MAX_PATH];
  37. const GUID CLSID_CDFVIEW =
  38. {0xf39a0dc0, 0x9cc8, 0x11d0, {0xa5, 0x99, 0x0, 0xc0, 0x4f, 0xd6, 0x44, 0x33}};
  39. // {f39a0dc0-9cc8-11d0-a599-00c04fd64433}
  40. const GUID CLSID_CDFINI =
  41. {0xf3aa0dc0, 0x9cc8, 0x11d0, {0xa5, 0x99, 0x0, 0xc0, 0x4f, 0xd6, 0x44, 0x34}};
  42. // {f3aa0dc0-9cc8-11d0-a599-00c04fd64434}
  43. const GUID CLSID_CDFICONHANDLER =
  44. {0xf3ba0dc0, 0x9cc8, 0x11d0, {0xa5, 0x99, 0x0, 0xc0, 0x4f, 0xd6, 0x44, 0x35}};
  45. // {f3ba0dc0-9cc8-11d0-a599-00c04fd64435}
  46. const GUID CLSID_CDFMENUHANDLER =
  47. {0xf3da0dc0, 0x9cc8, 0x11d0, {0xa5, 0x99, 0x0, 0xc0, 0x4f, 0xd6, 0x44, 0x37}};
  48. // {f3da0dc0-9cc8-11d0-a599-00c04fd64437}
  49. const GUID CLSID_CDFPROPPAGES =
  50. {0xf3ea0dc0, 0x9cc8, 0x11d0, {0xa5, 0x99, 0x0, 0xc0, 0x4f, 0xd6, 0x44, 0x38}};
  51. //
  52. const TCHAR c_szChannel[] = TEXT("Channel");
  53. const TCHAR c_szCDFURL[] = TEXT("CDFURL");
  54. const TCHAR c_szHotkey[] = TEXT("Hotkey");
  55. const TCHAR c_szDesktopINI[] = TEXT("desktop.ini");
  56. const TCHAR c_szScreenSaverURL[] = TEXT("ScreenSaverURL");
  57. const WCHAR c_szPropCrawlActualSize[] = L"ActualSizeKB";
  58. const WCHAR c_szPropStatusString[] = L"StatusString";
  59. const WCHAR c_szPropCompletionTime[] = L"CompletionTime";
  60. // From Plus! tab code
  61. const TCHAR c_szHICKey[] = TEXT("Control Panel\\Desktop\\WindowMetrics"); // show icons using highest possible colors
  62. const TCHAR c_szHICVal[] = TEXT("Shell Icon BPP"); // (4 if the checkbox is false, otherwise 16, don't set it to anything else)