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 / framewrk / globals.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  2.0 KB  |  58 lines

  1. //=--------------------------------------------------------------------------=
  2. // Globals.C
  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 global variables and strings and the like that just don't fit
  13. // anywhere else.
  14. //
  15. #include "IPServer.H"
  16.  
  17. //=--------------------------------------------------------------------------=
  18. // support for licensing
  19. //
  20. BOOL g_fMachineHasLicense;
  21. BOOL g_fCheckedForLicense;
  22.  
  23. //=--------------------------------------------------------------------------=
  24. // does our server have a type library?
  25. //
  26. BOOL g_fServerHasTypeLibrary = TRUE;
  27.  
  28. //=--------------------------------------------------------------------------=
  29. // our instance handles
  30. //
  31. HINSTANCE    g_hInstance;
  32. HINSTANCE    g_hInstResources;
  33. VARIANT_BOOL g_fHaveLocale;
  34.  
  35. //=--------------------------------------------------------------------------=
  36. // our global memory allocator and global memory pool
  37. //
  38. HANDLE   g_hHeap;
  39.  
  40. //=--------------------------------------------------------------------------=
  41. // apartment threading support.
  42. //
  43. CRITICAL_SECTION    g_CriticalSection;
  44.  
  45. //=--------------------------------------------------------------------------=
  46. // global parking window for parenting various things.
  47. //
  48. HWND     g_hwndParking;
  49.  
  50. //=--------------------------------------------------------------------------=
  51. // system information
  52. //
  53. BOOL    g_fSysWin95;                    // we're under Win95 system, not just NT SUR
  54. BOOL    g_fSysWinNT;                    // we're under some form of Windows NT
  55. BOOL    g_fSysWin95Shell;               // we're under Win95 or Windows NT SUR { > 3/51)
  56.  
  57.  
  58.