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.2 KiB

  1. /* File: D:\WACKER\tdll\update.hh (Created: 09-Dec-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 1 $
  7. * $Date: 10/05/98 12:36p $
  8. */
  9. #if !defined(INCL_HHUPDATE)
  10. #define INCL_HHUPDATE
  11. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  12. Update record formats:
  13. The server hands display information to the client via update records.
  14. These update records describe changes since the last time the client
  15. requested display information. To optimize this information exchange,
  16. the update record has several "personalities". Scroll mode, sends
  17. information on a line basis. Line mode sends information about a
  18. single line. The server decides which to send.
  19. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  20. #define UPD_SCROLL 1 // scroll mode
  21. #define UPD_LINE 2 // line mode
  22. #define UPD_MAXLINES MAX_EMUROWS * 2 // This value must be twice the size
  23. // of the maximum number of rows for any
  24. // emulator in any mode!
  25. struct stScrlMode
  26. {
  27. int yBeg, yEnd,
  28. iScrlInc, // iScrlInc for full screen scrolls.
  29. iRgnScrlInc, // iRgnScrlInc for region scrolls.
  30. iBksScrlInc; // amount backscrl has scrolled.
  31. BYTE auchLines[UPD_MAXLINES]; // array used to record line changes.
  32. int iFirstLine; // points to first line in auchLines[].
  33. BOOL fSave; // if true, save changes to backscroll.
  34. };
  35. struct stLineMode
  36. {
  37. int iLine, xBeg, xEnd; // range of columns within a line.
  38. };
  39. struct stUpdate
  40. {
  41. BYTE bUpdateType;
  42. int iTopline; // always need to know the top line.
  43. int iLines; // number of lines in backscroll buffer
  44. int iRow; // cursor row (offset from 0)
  45. int iCol; // cursor col (offset from 0)
  46. int iCType; // cursor type
  47. int iScrlMax; // maximum allowable amount to scroll.
  48. BOOL fUpdateLock; // update record full.
  49. BOOL fRealloc; // emulator resized its image buffers.
  50. struct stScrlMode stScrl;
  51. struct stLineMode stLine;
  52. HSESSION hSession;
  53. };
  54. typedef struct stUpdate *HHUPDATE;
  55. /* --- Function Prototypes ---*/
  56. void updateReset(const HHUPDATE hUpd);
  57. #endif