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.

35 lines
1.1 KiB

  1. //Copyright (c) Microsoft Corporation. All rights reserved.
  2. //Headers required for term type VTNT
  3. #ifndef __VTNT_H
  4. #define __VTNT_H
  5. //To provide scrolling, we need a new field to tell whether the given data is
  6. //to be put w.r.t ( top, left ) of the screen or to be appended at the bottom
  7. //of the screen. Since, this field can't be added without breaking
  8. //V1, we use csbi.wAttributes for this purpose.
  9. typedef struct {
  10. //The following is not used in the v1 client. Hence, in V2, we are using
  11. //csbi.wAttributes
  12. CONSOLE_SCREEN_BUFFER_INFO csbi;
  13. //Screen( and not buffer ) cursor position. ( top, left ) = ( 0, 0 )
  14. COORD coCursorPos;
  15. //The following is not really needed. It is filled always as ( 0, 0 ) at the
  16. //server end. Keeping it for v1 compatability.
  17. COORD coDest;
  18. COORD coSizeOfData; //Size of data as coords
  19. //Destination rectangle w.r.t screen ( and not buffer )
  20. SMALL_RECT srDestRegion;
  21. } VTNT_CHAR_INFO;
  22. #define RELATIVE_COORDS 1
  23. #define ABSOLUTE_COORDS 0
  24. #endif //__VTNT_H