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.

95 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. com.hxx
  5. Abstract:
  6. Header specific to LPT
  7. Author:
  8. Ramon Juan San Andres (ramonsa) 26-Jun-1991
  9. Revision History:
  10. --*/
  11. #include "string.hxx"
  12. //
  13. // Registry key with the names of the serial ports
  14. //
  15. #define LPT_KEY_NAME "HARDWARE\\DEVICEMAP\\PARALLEL PORTS"
  16. //
  17. // Data for request type REQUEST_TYPE_LPT_SETUP
  18. //
  19. typedef struct _REQUEST_DATA_LPT_SETUP {
  20. //
  21. // These flags tell what options to set
  22. //
  23. BOOLEAN SetCol;
  24. BOOLEAN SetLines;
  25. BOOLEAN SetRetry;
  26. //
  27. // Options
  28. //
  29. ULONG Col;
  30. ULONG Lines;
  31. WCHAR Retry;
  32. } REQUEST_DATA_LPT_SETUP, *PREQUEST_DATA_LPT_SETUP;
  33. //
  34. // Data for request type REQUEST_TYPE_LPT_REDIRECT
  35. //
  36. typedef struct _REQUEST_DATA_LPT_REDIRECT {
  37. DEVICE_TTYPE DeviceType;
  38. ULONG DeviceNumber;
  39. } REQUEST_DATA_LPT_REDIRECT, *PREQUEST_DATA_LPT_REDIRECT;
  40. //
  41. // Data for request type REQUEST_TYPE_CODEPAGE_SELECT
  42. //
  43. typedef struct _REQUEST_DATA_LPT_CODEPAGE_SELECT {
  44. ULONG Codepage; // CodePage
  45. } REQUEST_DATA_LPT_CODEPAGE_SELECT, *PREQUEST_DATA_LPT_CODEPAGE_SELECT;
  46. //
  47. // Data for requests to LPT
  48. //
  49. typedef union _LPT_REQUEST_DATA {
  50. REQUEST_DATA_LPT_SETUP Setup;
  51. REQUEST_DATA_LPT_REDIRECT Redirect;
  52. REQUEST_DATA_LPT_CODEPAGE_SELECT CpSelect;
  53. } LPT_REQUEST_DATA, *PLPT_REQUEST_DATA;
  54. //
  55. // Structure of a request to LPT
  56. //
  57. typedef struct _LPT_REQUEST {
  58. REQUEST_HEADER Header; // Request Header
  59. LPT_REQUEST_DATA Data; // Request data
  60. } LPT_REQUEST, *PLPT_REQUEST;