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.

90 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. com.hxx
  5. Abstract:
  6. Header specific to the console ( CON: )
  7. Author:
  8. Ramon Juan San Andres (ramonsa) 26-Jun-1991
  9. Revision History:
  10. --*/
  11. //
  12. // Data for request type REQUEST_TYPE_CON_ROWCOL
  13. //
  14. typedef struct _REQUEST_DATA_CON_ROWCOL {
  15. //
  16. // These flags tell what options to set
  17. //
  18. BOOLEAN SetCol;
  19. BOOLEAN SetLines;
  20. //
  21. // These are the options
  22. //
  23. ULONG Col; // Number of columns
  24. ULONG Lines; // Number of lines (rows)
  25. } REQUEST_DATA_CON_ROWCOL, *PREQUEST_DATA_CON_ROWCOL;
  26. //
  27. // Data for request type REQUEST_TYPE_CON_TYPEMATIC
  28. //
  29. typedef struct _REQUEST_DATA_CON_TYPEMATIC {
  30. //
  31. // These flags tell what options to set
  32. //
  33. BOOLEAN SetRate;
  34. BOOLEAN SetDelay;
  35. //
  36. // Options
  37. //
  38. LONG Rate; // Rate value
  39. LONG Delay; // Delay value
  40. } REQUEST_DATA_CON_TYPEMATIC, *PREQUEST_DATA_CON_TYPEMATIC;
  41. //
  42. // Data for request type REQUEST_TYPE_CODEPAGE_SELECT
  43. //
  44. typedef struct _REQUEST_DATA_CON_CODEPAGE_SELECT {
  45. ULONG Codepage; // CodePage
  46. } REQUEST_DATA_CON_CODEPAGE_SELECT, *PREQUEST_DATA_CON_CODEPAGE_SELECT;
  47. //
  48. // Data for requests to CON
  49. //
  50. typedef union _CON_REQUEST_DATA {
  51. REQUEST_DATA_CON_ROWCOL RowCol;
  52. REQUEST_DATA_CON_TYPEMATIC Typematic;
  53. REQUEST_DATA_CON_CODEPAGE_SELECT CpSelect;
  54. } CON_REQUEST_DATA, *PCON_REQUEST_DATA;
  55. //
  56. // Structure of a request to CON
  57. //
  58. typedef struct _CON_REQUEST {
  59. REQUEST_HEADER Header; // Request Header
  60. CON_REQUEST_DATA Data; // Request data
  61. } CON_REQUEST, *PCON_REQUEST;