Leaked source code of windows server 2003
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.

74 lines
2.9 KiB

  1. //
  2. // Module: globals.h
  3. //
  4. // Global variable declarations for the Object Packager.
  5. //
  6. //
  7. extern INT gcxIcon;
  8. extern INT gcyIcon;
  9. extern INT gcxArrange; // Icon text wrap boundary
  10. extern INT gcyArrange;
  11. extern INT giXppli; // Number of pixels per logical
  12. extern INT giYppli; // inch along width and height
  13. extern BOOL gfEmbObjectOpen;
  14. extern BOOL gfBlocked;
  15. extern BOOL gfEmbedded; // Editing an embedded object?
  16. extern BOOL gfInvisible; // Editing invisibly?
  17. extern BOOL gfOleClosed; // Should we send Ole_Closed or not?
  18. extern BOOL gfEmbeddedFlag; // Editing with /Embedded flag?
  19. extern BOOL gfDocCleared;
  20. extern BOOL gfServer; // Is the server loaded?
  21. extern BOOL gfDocExists;
  22. extern BOOL gbDBCS; // Are we running in DBCS mode?
  23. extern HANDLE ghInst; // Unique instance identifier
  24. extern HACCEL ghAccTable; // Application specific accelerator table
  25. extern HBRUSH ghbrBackground; // Fill brush used to paint background
  26. extern HFONT ghfontTitle;
  27. extern HFONT ghfontChild; // Font for caption bar
  28. extern HCURSOR ghcurWait; // Hourglass cursor
  29. extern HWND ghwndFrame; // Main window
  30. extern HWND ghwndBar[];
  31. extern HWND ghwndPane[];
  32. extern HWND ghwndPict;
  33. extern HWND ghwndError; // Parent window when Error popup happens
  34. extern INT gnCmdShowSave; // Show flags; saved if started invisibly
  35. extern UINT gcOleWait; // OLE asynchronous transaction counter
  36. extern LHCLIENTDOC glhcdoc; // Handle to client document "link"
  37. extern LPSAMPDOC gvlptempdoc;
  38. extern LPAPPSTREAM glpStream;
  39. extern LPOLECLIENT glpclient;
  40. extern LPVOID glpobj[];
  41. extern LPVOID glpobjUndo[];
  42. extern HANDLE ghServer; // Handle to server memory block
  43. extern LPSAMPSRVR glpsrvr; // Pointer to OLE server memory
  44. extern LPSAMPDOC glpdoc; // Pointer to current OLE document
  45. extern DWORD gcbObject;
  46. extern PANETYPE gpty[];
  47. extern PANETYPE gptyUndo[];
  48. extern OLECLIPFORMAT gcfFileName; // Clipboard format "FileName"
  49. extern OLECLIPFORMAT gcfLink; // Clipboard format "ObjectLink"
  50. extern OLECLIPFORMAT gcfNative; // Clipboard format "Native"
  51. extern OLECLIPFORMAT gcfOwnerLink; // Clipboard format "OwnerLink"
  52. extern CHAR gszClientName[CCLIENTNAMEMAX]; // Name of the client application
  53. extern CHAR gszFileName[];
  54. extern CHAR gszCaption[][CBMESSAGEMAX];
  55. extern CHAR gszProtocol[];
  56. extern CHAR gszSProtocol[];
  57. extern CHAR gszTemp[];
  58. extern CHAR gszAppClassName[]; // Not NLS specific
  59. extern CHAR szAppName[]; // Application name
  60. extern CHAR szUntitled[CBMESSAGEMAX]; // "(Untitled)" string FEATURE this is misnamed and used funny
  61. extern CHAR szUndo[]; // "Undo %s" string
  62. extern CHAR szContent[];
  63. extern CHAR szAppearance[];
  64. extern CHAR szDummy[];