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.

138 lines
4.5 KiB

  1. /*++
  2. Copyright (c) 1997 - 1999 Hewlett-Packard Company.
  3. Copyright (c) 1997 - 1999 Microsoft Corporation
  4. All rights reserved
  5. Module Name:
  6. tcpxcv.h
  7. // @@BEGIN_DDKSPLIT
  8. Abstract: This consolidates the data structures used for the
  9. tcpmon xcv data interface.
  10. Author: mlawrenc
  11. Environment:
  12. User Mode -Win32
  13. Revision History:
  14. Created 10/29/1999
  15. // @@END_DDKSPLIT
  16. --*/
  17. #ifndef _TCPXCV_
  18. #define _TCPXCV_
  19. #if (!defined(RAWTCP))
  20. #define RAWTCP 1
  21. #define PROTOCOL_RAWTCP_TYPE RAWTCP
  22. #endif
  23. #if (!defined(LPR))
  24. #define LPR 2
  25. #define PROTOCOL_LPR_TYPE LPR
  26. #endif
  27. #define MAX_PORTNAME_LEN 63 +1 // port name length
  28. #define MAX_NETWORKNAME_LEN 48 +1 // host name length
  29. #define MAX_SNMP_COMMUNITY_STR_LEN 32 +1 // SNMP Community String Name
  30. #define MAX_QUEUENAME_LEN 32 +1 // lpr print que name
  31. #define MAX_IPADDR_STR_LEN 15 +1 // ip address; string version
  32. #define MAX_ADDRESS_STR_LEN 12 +1 // hw address length
  33. #define MAX_DEVICEDESCRIPTION_STR_LEN 256+1
  34. // @@BEGIN_DDKSPLIT
  35. typedef struct _PORT_DATA_1
  36. {
  37. TCHAR sztPortName[MAX_PORTNAME_LEN]; // Must be the first element for XcvData Calls -- port name
  38. DWORD dwVersion; // -- represents the extension UI data structure version
  39. DWORD dwProtocol; // -- represents the extension UI transport protocol (i.e. set to 1 if Raw TCP/IP printing, and 2 if LPR)
  40. DWORD cbSize; // for AddPort or by TcpMon for ConfigPort --the size of this structure
  41. DWORD dwCoreUIVersion; // --the data struct version for the core UI
  42. TCHAR sztHostAddress[MAX_NETWORKNAME_LEN]; // -- can be the IP address or host name depending on what user entered to the dialog
  43. TCHAR sztSNMPCommunity[MAX_SNMP_COMMUNITY_STR_LEN];
  44. DWORD dwDoubleSpool;
  45. TCHAR sztQueue[MAX_QUEUENAME_LEN];
  46. TCHAR sztIPAddress[MAX_IPADDR_STR_LEN];
  47. TCHAR sztHardwareAddress[MAX_ADDRESS_STR_LEN];
  48. TCHAR sztDeviceType[MAX_DEVICEDESCRIPTION_STR_LEN];
  49. DWORD dwPortNumber; // -- the printing port number used by this printing device.
  50. DWORD dwSNMPEnabled;
  51. DWORD dwSNMPDevIndex;
  52. } PORT_DATA_1, *PPORT_DATA_1;
  53. #if 0
  54. // @@END_DDKSPLIT
  55. typedef struct _PORT_DATA_1
  56. {
  57. WCHAR sztPortName[MAX_PORTNAME_LEN];
  58. DWORD dwVersion;
  59. DWORD dwProtocol;
  60. DWORD cbSize;
  61. DWORD dwReserved;
  62. WCHAR sztHostAddress[MAX_NETWORKNAME_LEN];
  63. WCHAR sztSNMPCommunity[MAX_SNMP_COMMUNITY_STR_LEN];
  64. DWORD dwDoubleSpool;
  65. WCHAR sztQueue[MAX_QUEUENAME_LEN];
  66. WCHAR sztIPAddress[MAX_IPADDR_STR_LEN];
  67. BYTE Reserved[540];
  68. DWORD dwPortNumber;
  69. DWORD dwSNMPEnabled;
  70. DWORD dwSNMPDevIndex;
  71. } PORT_DATA_1, *PPORT_DATA_1;
  72. // @@BEGIN_DDKSPLIT
  73. #endif
  74. typedef struct _DELETE_PORT_DATA_1
  75. {
  76. TCHAR psztPortName[MAX_PORTNAME_LEN]; // must be the first element for xcvdata calls
  77. TCHAR psztName[MAX_NETWORKNAME_LEN];
  78. DWORD dwVersion;
  79. DWORD dwReserved;
  80. } DELETE_PORT_DATA_1, *PDELETE_PORT_DATA_1;
  81. #if 0
  82. // @@END_DDKSPLIT
  83. typedef struct _DELETE_PORT_DATA_1
  84. {
  85. WCHAR psztPortName[MAX_PORTNAME_LEN];
  86. BYTE Reserved[98];
  87. DWORD dwVersion;
  88. DWORD dwReserved;
  89. } DELETE_PORT_DATA_1, *PDELETE_PORT_DATA_1;
  90. // @@BEGIN_DDKSPLIT
  91. #endif
  92. typedef struct _CONFIG_INFO_DATA_1
  93. {
  94. TCHAR sztPortName[MAX_PORTNAME_LEN]; // Must be the first element for XcvData Calls -- port name
  95. DWORD dwVersion; // -- represents the extension UI data structure version
  96. } CONFIG_INFO_DATA_1, *PCONFIG_INFO_DATA_1;
  97. #if 0
  98. // @@END_DDKSPLIT
  99. typedef struct _CONFIG_INFO_DATA_1
  100. {
  101. BYTE Reserved[128];
  102. DWORD dwVersion;
  103. } CONFIG_INFO_DATA_1, *PCONFIG_INFO_DATA_1;
  104. // @@BEGIN_DDKSPLIT
  105. #endif
  106. /************************************************************************************
  107. ** End of File (tcpxcv.h)
  108. ************************************************************************************/
  109. // @@END_DDKSPLIT
  110. #endif