]> git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/PrinterSetupWizard/tcpxcv.h
mDNSResponder-1310.40.42.tar.gz
[apple/mdnsresponder.git] / Clients / PrinterSetupWizard / tcpxcv.h
1 /*++
2
3 Copyright (c) 1997 - 1999 Hewlett-Packard Company.
4 Copyright (c) 1997 - 1999 Microsoft Corporation
5 All rights reserved
6
7 Module Name:
8
9 tcpxcv.h
10
11 --*/
12 /*
13 * This file is contained in WinDDK 6001.18002
14 */
15
16 #ifndef _TCPXCV_
17 #define _TCPXCV_
18
19 #if (!defined(UNKNOWN_PROTOCOL))
20 #define UNKNOWN_PROTOCOL 0
21 #define PROTOCOL_UNKNOWN_TYPE UNKNOWN_PROTOCOL
22 #endif
23
24 #if (!defined(RAWTCP))
25 #define RAWTCP 1
26 #define PROTOCOL_RAWTCP_TYPE RAWTCP
27 #endif
28
29 #if (!defined(LPR))
30 #define LPR 2
31 #define PROTOCOL_LPR_TYPE LPR
32 #endif
33
34 #define MAX_PORTNAME_LEN 63 +1 // port name length
35 #define MAX_NETWORKNAME_LEN 48 +1 // host name length
36 #define MAX_NETWORKNAME2_LEN 128 // host name or IPv6 address
37 #define MAX_SNMP_COMMUNITY_STR_LEN 32 +1 // SNMP Community String Name
38 #define MAX_QUEUENAME_LEN 32 +1 // lpr print que name
39 #define MAX_IPADDR_STR_LEN 15 +1 // ip address; string version
40 #define MAX_ADDRESS_STR_LEN 12 +1 // hw address length
41 #define MAX_DEVICEDESCRIPTION_STR_LEN 256+1
42
43
44
45 typedef struct _PORT_DATA_1
46 {
47 WCHAR sztPortName[MAX_PORTNAME_LEN];
48 DWORD dwVersion;
49 DWORD dwProtocol;
50 DWORD cbSize;
51 DWORD dwReserved;
52 WCHAR sztHostAddress[MAX_NETWORKNAME_LEN];
53 WCHAR sztSNMPCommunity[MAX_SNMP_COMMUNITY_STR_LEN];
54 DWORD dwDoubleSpool;
55 WCHAR sztQueue[MAX_QUEUENAME_LEN];
56 WCHAR sztIPAddress[MAX_IPADDR_STR_LEN];
57 BYTE Reserved[540];
58 DWORD dwPortNumber;
59 DWORD dwSNMPEnabled;
60 DWORD dwSNMPDevIndex;
61 } PORT_DATA_1, *PPORT_DATA_1;
62
63 typedef struct _PORT_DATA_2
64 {
65 WCHAR sztPortName[MAX_PORTNAME_LEN];
66 DWORD dwVersion;
67 DWORD dwProtocol;
68 DWORD cbSize;
69 DWORD dwReserved;
70 WCHAR sztHostAddress [MAX_NETWORKNAME2_LEN];
71 WCHAR sztSNMPCommunity[MAX_SNMP_COMMUNITY_STR_LEN];
72 DWORD dwDoubleSpool;
73 WCHAR sztQueue[MAX_QUEUENAME_LEN];
74 BYTE Reserved[514];
75 DWORD dwPortNumber;
76 DWORD dwSNMPEnabled;
77 DWORD dwSNMPDevIndex;
78 DWORD dwPortMonitorMibIndex;
79 } PORT_DATA_2, *PPORT_DATA_2;
80
81
82 typedef struct _PORT_DATA_LIST_1
83 {
84 DWORD dwVersion;
85 DWORD cPortData;
86 PORT_DATA_2 pPortData[1];
87 } PORT_DATA_LIST_1, *PPORT_DATA_LIST_1;
88
89
90 typedef struct _DELETE_PORT_DATA_1
91 {
92 WCHAR psztPortName[MAX_PORTNAME_LEN];
93 BYTE Reserved[98];
94 DWORD dwVersion;
95 DWORD dwReserved;
96 } DELETE_PORT_DATA_1, *PDELETE_PORT_DATA_1;
97
98
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
105
106
107 #endif