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.

97 lines
2.0 KiB

  1. //
  2. // Global variables
  3. //
  4. extern WbMainWindow * g_pMain;
  5. extern HINSTANCE g_hInstance;
  6. extern UINT g_uConfShutdown;
  7. extern HPALETTE g_hRainbowPaletteDisplay;
  8. extern WbPrinter * g_pPrinter;
  9. extern HINSTANCE g_hImmLib;
  10. extern IGC_PROC g_fnImmGetContext;
  11. extern INI_PROC g_fnImmNotifyIME;
  12. //extern "C" int _fltused;
  13. extern int __cdecl atexit (void);
  14. enum
  15. {
  16. CLIPBOARD_PRIVATE = 0,
  17. CLIPBOARD_DIB,
  18. CLIPBOARD_ENHMETAFILE,
  19. CLIPBOARD_TEXT,
  20. CLIPBOARD_ACCEPTABLE_FORMATS
  21. };
  22. //
  23. // GCC handle allocation
  24. //
  25. #define PREALLOC_GCC_HANDLES 256
  26. #define PREALLOC_GCC_BUFFERS 2
  27. typedef struct tagGCCPrealloc
  28. {
  29. ULONG InitialGCCHandle;
  30. ULONG GccHandleCount;
  31. } GCCPREALOC;
  32. extern GCCPREALOC g_GCCPreallocHandles[];
  33. extern UINT g_iGCCHandleIndex;
  34. extern BOOL g_WaitingForGCCHandles;
  35. #define MAX_BITS_PERPIXEL 8 // Specifies the number of bits per pixel ASN1 allows
  36. extern int g_ClipboardFormats[CLIPBOARD_ACCEPTABLE_FORMATS];
  37. extern BOOL g_bPalettesInitialized;
  38. extern BOOL g_bUsePalettes;
  39. extern UINT g_PenWidths[NUM_OF_WIDTHS];
  40. extern UINT g_HighlightWidths[NUM_OF_WIDTHS];
  41. #define NUM_COLOR_ENTRIES 21
  42. extern COLORREF g_ColorTable[NUM_COLOR_ENTRIES];
  43. //
  44. // Complex object globals
  45. //
  46. extern WbDrawingArea* g_pDraw;
  47. extern DCWbColorToIconMap* g_pIcons;
  48. extern UINT g_numberOfWorkspaces;
  49. extern UINT g_numberOfObjects;
  50. extern CWBOBLIST* g_pListOfWorkspaces;
  51. extern CWBOBLIST* g_pListOfObjectsThatRequestedHandles;
  52. extern CWBOBLIST* g_pRetrySendList;
  53. extern BOOL g_fWaitingForBufferAvailable;
  54. extern CWBOBLIST* g_pTrash;
  55. extern UINT g_localGCCHandle;
  56. extern WorkspaceObj*g_pCurrentWorkspace;
  57. extern WorkspaceObj*g_pConferenceWorkspace;
  58. extern ULONG g_MyMemberID;
  59. extern ULONG g_RefresherID;
  60. extern UINT g_MyIndex;
  61. extern COLORREF g_crDefaultColors[];
  62. extern BOOL g_bSavingFile;
  63. extern BOOL g_bContentsChanged;
  64. extern Coder * g_pCoder;
  65. extern DWORD g_dwWorkThreadID;
  66. #define WB_MAX_WORKSPACES 256
  67. class CNMWbObj;
  68. extern CNMWbObj * g_pNMWBOBJ;