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.

74 lines
2.8 KiB

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