home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activexcontrol / basectl / include / globals.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  2KB  |  65 lines

  1. //=--------------------------------------------------------------------------=
  2. // Globals.H
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1995-1997 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 externs and stuff for Global variables, etc ..
  13. //
  14. #ifndef _GLOBALS_H_
  15.  
  16. // the library that we are
  17. //
  18. extern const CLSID *g_pLibid;
  19.  
  20. //=--------------------------------------------------------------------------=
  21. // support for licensing
  22. //
  23. extern BOOL   g_fMachineHasLicense;
  24. extern BOOL   g_fCheckedForLicense;
  25.  
  26. //=--------------------------------------------------------------------------=
  27. // does our server have a type library?
  28. //
  29. extern BOOL   g_fServerHasTypeLibrary;
  30.  
  31. //=--------------------------------------------------------------------------=
  32. // our instance handle, and various pieces of information interesting to
  33. // localization
  34. //
  35. extern HINSTANCE    g_hInstance;
  36.  
  37. extern const VARIANT_BOOL g_fSatelliteLocalization;
  38. extern VARIANT_BOOL       g_fHaveLocale;
  39. extern LCID               g_lcidLocale;
  40.  
  41. //=--------------------------------------------------------------------------=
  42. // apartment threading support.
  43. //
  44. extern CRITICAL_SECTION g_CriticalSection;
  45.  
  46. //=--------------------------------------------------------------------------=
  47. // our global memory allocator and global memory pool
  48. //
  49. extern HANDLE   g_hHeap;
  50.  
  51. //=--------------------------------------------------------------------------=
  52. // global parking window for parenting various things.
  53. //
  54. extern HWND     g_hwndParking;
  55.  
  56. //=--------------------------------------------------------------------------=
  57. // system information
  58. //
  59. extern BOOL g_fSysWin95;                    // we're under Win95 system, not just NT SUR
  60. extern BOOL g_fSysWinNT;                    // we're under some form of Windows NT
  61. extern BOOL g_fSysWin95Shell;               // we're under Win95 or Windows NT SUR { > 3/51)
  62.  
  63. #define _GLOBALS_H_
  64. #endif // _GLOBALS_H_
  65.