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.

57 lines
2.0 KiB

  1. //=--------------------------------------------------------------------------=
  2. // Globals.C
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1995-1996 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 "IPServer.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. //=--------------------------------------------------------------------------=
  26. // our instance handles
  27. //
  28. HINSTANCE g_hInstance;
  29. HINSTANCE g_hInstResources;
  30. VARIANT_BOOL g_fHaveLocale;
  31. //=--------------------------------------------------------------------------=
  32. // our global memory allocator and global memory pool
  33. //
  34. HANDLE g_hHeap;
  35. //=--------------------------------------------------------------------------=
  36. // apartment threading support.
  37. //
  38. CRITICAL_SECTION g_CriticalSection;
  39. //=--------------------------------------------------------------------------=
  40. // global parking window for parenting various things.
  41. //
  42. HWND g_hwndParking;
  43. //=--------------------------------------------------------------------------=
  44. // system information
  45. //
  46. BOOL g_fSysWin95; // we're under Win95 system, not just NT SUR
  47. BOOL g_fSysWinNT; // we're under some form of Windows NT
  48. BOOL g_fSysWin95Shell; // we're under Win95 or Windows NT SUR { > 3/51)