// This file includes all the global variable definitions/declarations. // NOTE: Define macro GLOBALS only in one source file to really allocate // the space for the globals #ifndef __GLOBALS__ #define __GLOBALS__ #ifdef GLOBALS #define GLOB #define INI(x) = x #define INIT(x) x #else #define GLOB extern #define INI(x) #define INIT(x) #endif #define MAXSCR 100 GLOB int GiVersion INI(0x0009); // Version 0xabnm means version ab.nm GLOB HWND GhWnd INI(NULL); // Handle of the current window GLOB HINSTANCE GhInst INI(NULL); // Instance handle of this module GLOB BOOL GbClRegistered INI(FALSE); // Is our window class registered? GLOB NPG3PARAMS GpParams INI(NULL); // Pointer to the current params block GLOB HDC GhDC INI(NULL); // Current device context handle GLOB char GszScratch[INIT(MAXSCR)]; // Scratch string niche #undef GLOB #undef INI #undef INIT #endif // __GLOBALS__