ReactOS 0.4.15-dev-8219-ge8b88cf
svcguid.h
Go to the documentation of this file.
1#ifndef _SVCGUID_H
2#define _SVCGUID_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define SVCID_HOSTNAME { 0x0002a800,0,0,{ 0xC0,0,0,0,0,0,0,0x46 } }
9#define SVCID_INET_HOSTADDRBYINETSTRING { 0x0002a801,0,0,{ 0xC0,0,0,0,0,0,0,0x46 } }
10#define SVCID_INET_SERVICEBYNAME { 0x0002a802,0,0,{ 0xC0,0,0,0,0,0,0,0x46 } }
11#define SVCID_INET_HOSTADDRBYNAME { 0x0002a803,0,0,{ 0xC0,0,0,0,0,0,0,0x46 } }
12
13#define SVCID_TCP_RR(_Port,_RR) { (0x0009 << 16) | (_Port),0,_RR,{ 0xC0,0,0,0,0,0,0,0x46 } }
14#define SVCID_TCP(_Port) SVCID_TCP_RR(_Port,0)
15#define SVCID_DNS(_RecordType) SVCID_TCP_RR(53,_RecordType)
16#define IS_SVCID_DNS(_g) ((((_g)->Data1)==0x00090035) && (((_g)->Data2)==0) && (((_g)->Data4[0])==0xC0) && (((_g)->Data4[1])==0) && (((_g)->Data4[2])==0) && (((_g)->Data4[3])==0) && (((_g)->Data4[4])==0) && (((_g)->Data4[5])==0) && (((_g)->Data4[6])==0) && (((_g)->Data4[7])==0x46))
17#define IS_SVCID_TCP(_g) (((((_g)->Data1) & 0xFFFF0000)==0x00090000) && (((_g)->Data2)==0) && (((_g)->Data4[0])==0xC0) && (((_g)->Data4[1])==0) && (((_g)->Data4[2])==0) && (((_g)->Data4[3])==0) && (((_g)->Data4[4])==0) && (((_g)->Data4[5])==0) && (((_g)->Data4[6])==0) && (((_g)->Data4[7])==0x46))
18#define PORT_FROM_SVCID_TCP(_g) ((WORD)(_g->Data1 & 0xFFFF))
19#define RR_FROM_SVCID(_RR) (_RR->Data3)
20#define SET_TCP_SVCID_RR(_g,_Port,_RR) { (_g)->Data1 = (0x0009 << 16) | (_Port); (_g)->Data2 = 0; (_g)->Data3 = _RR; (_g)->Data4[0] = 0xC0; (_g)->Data4[1] = 0x0; (_g)->Data4[2] = 0x0; (_g)->Data4[3] = 0x0; (_g)->Data4[4] = 0x0; (_g)->Data4[5] = 0x0; (_g)->Data4[6] = 0x0; (_g)->Data4[7] = 0x46; }
21#define SET_TCP_SVCID(_g,_Port) SET_TCP_SVCID_RR(_g,_Port,0)
22#define SVCID_UDP_RR(_Port,_RR) { (0x000A << 16) | (_Port),0,_RR,{ 0xC0,0,0,0,0,0,0,0x46 } }
23#define SVCID_UDP(_Port) SVCID_UDP_RR(_Port,0)
24#define IS_SVCID_UDP(_g) (((((_g)->Data1) & 0xFFFF0000)==0x000A0000) && (((_g)->Data2)==0) && (((_g)->Data4[0])==0xC0) && (((_g)->Data4[1])==0) && (((_g)->Data4[2])==0) && (((_g)->Data4[3])==0) && (((_g)->Data4[4])==0) && (((_g)->Data4[5])==0) && (((_g)->Data4[6])==0) && (((_g)->Data4[7])==0x46))
25#define PORT_FROM_SVCID_UDP(_g) ((WORD)(_g->Data1 & 0xFFFF))
26#define SET_UDP_SVCID_RR(_g,_Port,_RR) { (_g)->Data1 = (0x000A << 16) | (_Port); (_g)->Data2 = 0; (_g)->Data3 = _RR; (_g)->Data4[0] = 0xC0; (_g)->Data4[1] = 0x0; (_g)->Data4[2] = 0x0; (_g)->Data4[3] = 0x0; (_g)->Data4[4] = 0x0; (_g)->Data4[5] = 0x0; (_g)->Data4[6] = 0x0; (_g)->Data4[7] = 0x46; }
27#define SET_UDP_SVCID(_g,_Port) SET_UDP_SVCID_RR(_g,_Port,0)
28#define SVCID_NETWARE(_SapId) { (0x000B << 16) | (_SapId),0,0,{ 0xC0,0,0,0,0,0,0,0x46 } }
29#define IS_SVCID_NETWARE(_g) (((((_g)->Data1) & 0xFFFF0000)==0x000B0000) && (((_g)->Data2)==0) && (((_g)->Data3)==0) && (((_g)->Data4[0])==0xC0) && (((_g)->Data4[1])==0) && (((_g)->Data4[2])==0) && (((_g)->Data4[3])==0) && (((_g)->Data4[4])==0) && (((_g)->Data4[5])==0) && (((_g)->Data4[6])==0) && (((_g)->Data4[7])==0x46))
30#define SAPID_FROM_SVCID_NETWARE(_g) ((WORD)(_g->Data1 & 0xFFFF))
31#define SET_NETWARE_SVCID(_g,_SapId) { (_g)->Data1 = (0x000B << 16) | (_SapId); (_g)->Data2 = 0; (_g)->Data3 = 0; (_g)->Data4[0] = 0xC0; (_g)->Data4[1] = 0x0; (_g)->Data4[2] = 0x0; (_g)->Data4[3] = 0x0; (_g)->Data4[4] = 0x0; (_g)->Data4[5] = 0x0; (_g)->Data4[6] = 0x0; (_g)->Data4[7] = 0x46; }
32
33#define SVCID_ECHO_TCP SVCID_TCP(7)
34#define SVCID_DISCARD_TCP SVCID_TCP(9)
35#define SVCID_SYSTAT_TCP SVCID_TCP(11)
36#define SVCID_SYSTAT_TCP SVCID_TCP(11)
37#define SVCID_DAYTIME_TCP SVCID_TCP(13)
38#define SVCID_NETSTAT_TCP SVCID_TCP(15)
39#define SVCID_QOTD_TCP SVCID_TCP(17)
40#define SVCID_CHARGEN_TCP SVCID_TCP(19)
41#define SVCID_FTP_DATA_TCP SVCID_TCP(20)
42#define SVCID_FTP_TCP SVCID_TCP(21)
43#define SVCID_TELNET_TCP SVCID_TCP(23)
44#define SVCID_SMTP_TCP SVCID_TCP(25)
45#define SVCID_TIME_TCP SVCID_TCP(37)
46#define SVCID_NAME_TCP SVCID_TCP(42)
47#define SVCID_WHOIS_TCP SVCID_TCP(43)
48#define SVCID_DOMAIN_TCP SVCID_TCP(53)
49#define SVCID_NAMESERVER_TCP SVCID_TCP(53)
50#define SVCID_MTP_TCP SVCID_TCP(57)
51#define SVCID_RJE_TCP SVCID_TCP(77)
52#define SVCID_FINGER_TCP SVCID_TCP(79)
53#define SVCID_LINK_TCP SVCID_TCP(87)
54#define SVCID_SUPDUP_TCP SVCID_TCP(95)
55#define SVCID_HOSTNAMES_TCP SVCID_TCP(101)
56#define SVCID_ISO_TSAP_TCP SVCID_TCP(102)
57#define SVCID_DICTIONARY_TCP SVCID_TCP(103)
58#define SVCID_X400_TCP SVCID_TCP(103)
59#define SVCID_X400_SND_TCP SVCID_TCP(104)
60#define SVCID_CSNET_NS_TCP SVCID_TCP(105)
61#define SVCID_POP_TCP SVCID_TCP(109)
62#define SVCID_POP2_TCP SVCID_TCP(109)
63#define SVCID_POP3_TCP SVCID_TCP(110)
64#define SVCID_PORTMAP_TCP SVCID_TCP(111)
65#define SVCID_SUNRPC_TCP SVCID_TCP(111)
66#define SVCID_AUTH_TCP SVCID_TCP(113)
67#define SVCID_SFTP_TCP SVCID_TCP(115)
68#define SVCID_PATH_TCP SVCID_TCP(117)
69#define SVCID_UUCP_PATH_TCP SVCID_TCP(117)
70#define SVCID_NNTP_TCP SVCID_TCP(119)
71#define SVCID_NBSESSION_TCP SVCID_TCP(139)
72#define SVCID_NEWS_TCP SVCID_TCP(144)
73#define SVCID_TCPREPO_TCP SVCID_TCP(158)
74#define SVCID_PRINT_SRV_TCP SVCID_TCP(170)
75#define SVCID_VMNET_TCP SVCID_TCP(175)
76#define SVCID_VMNET0_TCP SVCID_TCP(400)
77#define SVCID_EXEC_TCP SVCID_TCP(512)
78#define SVCID_LOGIN_TCP SVCID_TCP(513)
79#define SVCID_SHELL_TCP SVCID_TCP(514)
80#define SVCID_PRINTER_TCP SVCID_TCP(515)
81#define SVCID_EFS_TCP SVCID_TCP(520)
82#define SVCID_TEMPO_TCP SVCID_TCP(526)
83#define SVCID_COURIER_TCP SVCID_TCP(530)
84#define SVCID_CONFERENCE_TCP SVCID_TCP(531)
85#define SVCID_NETNEWS_TCP SVCID_TCP(532)
86#define SVCID_UUCP_TCP SVCID_TCP(540)
87#define SVCID_KLOGIN_TCP SVCID_TCP(543)
88#define SVCID_KSHELL_TCP SVCID_TCP(544)
89#define SVCID_REMOTEFS_TCP SVCID_TCP(556)
90#define SVCID_GARCON_TCP SVCID_TCP(600)
91#define SVCID_MAITRD_TCP SVCID_TCP(601)
92#define SVCID_BUSBOY_TCP SVCID_TCP(602)
93#define SVCID_KERBEROS_TCP SVCID_TCP(750)
94#define SVCID_KERBEROS_MASTER_TCP SVCID_TCP(751)
95#define SVCID_KRB_PROP_TCP SVCID_TCP(754)
96#define SVCID_ERLOGIN_TCP SVCID_TCP(888)
97#define SVCID_KPOP_TCP SVCID_TCP(1109)
98#define SVCID_INGRESLOCK_TCP SVCID_TCP(1524)
99#define SVCID_KNETD_TCP SVCID_TCP(2053)
100#define SVCID_EKLOGIN_TCP SVCID_TCP(2105)
101#define SVCID_RMT_TCP SVCID_TCP(5555)
102#define SVCID_MTB_TCP SVCID_TCP(5556)
103#define SVCID_MAN_TCP SVCID_TCP(9535)
104#define SVCID_W_TCP SVCID_TCP(9536)
105#define SVCID_MANTST_TCP SVCID_TCP(9537)
106#define SVCID_BNEWS_TCP SVCID_TCP(10000)
107#define SVCID_QUEUE_TCP SVCID_TCP(10001)
108#define SVCID_POKER_TCP SVCID_TCP(10002)
109#define SVCID_GATEWAY_TCP SVCID_TCP(10003)
110#define SVCID_REMP_TCP SVCID_TCP(10004)
111#define SVCID_QMASTER_TCP SVCID_TCP(10012)
112
113#define SVCID_ECHO_UDP SVCID_UDP(7)
114#define SVCID_DISCARD_UDP SVCID_UDP(9)
115#define SVCID_DAYTIME_UDP SVCID_UDP(13)
116#define SVCID_QOTD_UDP SVCID_UDP(17)
117#define SVCID_CHARGEN_UDP SVCID_UDP(19)
118#define SVCID_TIME_UDP SVCID_UDP(37)
119#define SVCID_RLP_UDP SVCID_UDP(39)
120#define SVCID_NAME_UDP SVCID_UDP(42)
121#define SVCID_DOMAIN_UDP SVCID_UDP(53)
122#define SVCID_NAMESERVER_UDP SVCID_UDP(53)
123#define SVCID_BOOTP_UDP SVCID_UDP(67)
124#define SVCID_TFTP_UDP SVCID_UDP(69)
125#define SVCID_PORTMAP_UDP SVCID_UDP(111)
126#define SVCID_SUNRPC_UDP SVCID_UDP(111)
127#define SVCID_NTP_UDP SVCID_UDP(123)
128#define SVCID_NBNAME_UDP SVCID_UDP(137)
129#define SVCID_NBDATAGRAM_UDP SVCID_UDP(138)
130#define SVCID_SGMP_UDP SVCID_UDP(153)
131#define SVCID_SNMP_UDP SVCID_UDP(161)
132#define SVCID_SNMP_TRAP_UDP SVCID_UDP(162)
133#define SVCID_LOAD_UDP SVCID_UDP(315)
134#define SVCID_SYTEK_UDP SVCID_UDP(500)
135#define SVCID_BIFF_UDP SVCID_UDP(512)
136#define SVCID_WHO_UDP SVCID_UDP(513)
137#define SVCID_SYSLOG_UDP SVCID_UDP(514)
138#define SVCID_TALK_UDP SVCID_UDP(517)
139#define SVCID_NTALK_UDP SVCID_UDP(518)
140#define SVCID_ROUTE_UDP SVCID_UDP(520)
141#define SVCID_TIMED_UDP SVCID_UDP(525)
142#define SVCID_RVD_CONTROL_UDP SVCID_UDP(531)
143#define SVCID_NETWALL_UDP SVCID_UDP(533)
144#define SVCID_NEW_RWHO_UDP SVCID_UDP(550)
145#define SVCID_RMONITOR_UDP SVCID_UDP(560)
146#define SVCID_MONITOR_UDP SVCID_UDP(561)
147#define SVCID_ACCTMASTER_UDP SVCID_UDP(700)
148#define SVCID_ACCTSLAVE_UDP SVCID_UDP(701)
149#define SVCID_ACCT_UDP SVCID_UDP(702)
150#define SVCID_ACCTLOGIN_UDP SVCID_UDP(703)
151#define SVCID_ACCTPRINTER_UDP SVCID_UDP(704)
152#define SVCID_ELCSD_UDP SVCID_UDP(704)
153#define SVCID_ACCTINFO_UDP SVCID_UDP(705)
154#define SVCID_ACCTSLAVE2_UDP SVCID_UDP(706)
155#define SVCID_ACCTDISK_UDP SVCID_UDP(707)
156#define SVCID_KERBEROS_UDP SVCID_UDP(750)
157#define SVCID_KERBEROS_MASTER_UDP SVCID_UDP(751)
158#define SVCID_PASSWD_SERVER_UDP SVCID_UDP(752)
159#define SVCID_USERREG_SERVER_UDP SVCID_UDP(753)
160#define SVCID_PHONE_UDP SVCID_UDP(1167)
161#define SVCID_MAZE_UDP SVCID_UDP(1666)
162#define SVCID_NFS_UDP SVCID_UDP(2049)
163#define SVCID_RSCS0_UDP SVCID_UDP(10000)
164#define SVCID_RSCS1_UDP SVCID_UDP(10001)
165#define SVCID_RSCS2_UDP SVCID_UDP(10002)
166#define SVCID_RSCS3_UDP SVCID_UDP(10003)
167#define SVCID_RSCS4_UDP SVCID_UDP(10004)
168#define SVCID_RSCS5_UDP SVCID_UDP(10005)
169#define SVCID_RSCS6_UDP SVCID_UDP(10006)
170#define SVCID_RSCS7_UDP SVCID_UDP(10007)
171#define SVCID_RSCS8_UDP SVCID_UDP(10008)
172#define SVCID_RSCS9_UDP SVCID_UDP(10009)
173#define SVCID_RSCSA_UDP SVCID_UDP(10010)
174#define SVCID_RSCSB_UDP SVCID_UDP(10011)
175#define SVCID_QMASTER_UDP SVCID_UDP(10012)
176
177#define SVCID_PRINT_QUEUE SVCID_NETWARE(0x3)
178#define SVCID_FILE_SERVER SVCID_NETWARE(0x4)
179#define SVCID_JOB_SERVER SVCID_NETWARE(0x5)
180#define SVCID_GATEWAY SVCID_NETWARE(0x6)
181#define SVCID_PRINT_SERVER SVCID_NETWARE(0x7)
182#define SVCID_ARCHIVE_QUEUE SVCID_NETWARE(0x8)
183#define SVCID_ARCHIVE_SERVER SVCID_NETWARE(0x9)
184#define SVCID_JOB_QUEUE SVCID_NETWARE(0xA)
185#define SVCID_ADMINISTRATION SVCID_NETWARE(0xB)
186#define SVCID_NAS_SNA_GATEWAY SVCID_NETWARE(0x21)
187#define SVCID_REMOTE_BRIDGE_SERVER SVCID_NETWARE(0x24)
188#define SVCID_TIME_SYNCHRONIZATION_SERVER SVCID_NETWARE(0x2D)
189#define SVCID_ARCHIVE_SERVER_DYNAMIC_SAP SVCID_NETWARE(0x2E)
190#define SVCID_ADVERTISING_PRINT_SERVER SVCID_NETWARE(0x47)
191#define SVCID_BTRIEVE_VAP SVCID_NETWARE(0x4B)
192#define SVCID_DIRECTORY_SERVER SVCID_NETWARE(0x278)
193#define SVCID_NETWARE_386 SVCID_NETWARE(0x107)
194#define SVCID_HP_PRINT_SERVER SVCID_NETWARE(0x30C)
195#define SVCID_SNA_SERVER SVCID_NETWARE(0x444)
196#define SVCID_SAA_SERVER SVCID_NETWARE(0x130)
197
198#define SVCID_DNS_TYPE_A SVCID_DNS(0x0001)
199#define SVCID_DNS_TYPE_NS SVCID_DNS(0x0002)
200#define SVCID_DNS_TYPE_MD SVCID_DNS(0x0003)
201#define SVCID_DNS_TYPE_MF SVCID_DNS(0x0004)
202#define SVCID_DNS_TYPE_CNAME SVCID_DNS(0x0005)
203#define SVCID_DNS_TYPE_SOA SVCID_DNS(0x0006)
204#define SVCID_DNS_TYPE_MB SVCID_DNS(0x0007)
205#define SVCID_DNS_TYPE_MG SVCID_DNS(0x0008)
206#define SVCID_DNS_TYPE_MR SVCID_DNS(0x0009)
207#define SVCID_DNS_TYPE_NULL SVCID_DNS(0x000a)
208#define SVCID_DNS_TYPE_WKS SVCID_DNS(0x000b)
209#define SVCID_DNS_TYPE_PTR SVCID_DNS(0x000c)
210#define SVCID_DNS_TYPE_HINFO SVCID_DNS(0x000d)
211#define SVCID_DNS_TYPE_MINFO SVCID_DNS(0x000e)
212#define SVCID_DNS_TYPE_MX SVCID_DNS(0x000f)
213#define SVCID_DNS_TYPE_TEXT SVCID_DNS(0x0010)
214#define SVCID_DNS_TYPE_RP SVCID_DNS(0x0011)
215#define SVCID_DNS_TYPE_AFSDB SVCID_DNS(0x0012)
216#define SVCID_DNS_TYPE_X25 SVCID_DNS(0x0013)
217#define SVCID_DNS_TYPE_ISDN SVCID_DNS(0x0014)
218#define SVCID_DNS_TYPE_RT SVCID_DNS(0x0015)
219#define SVCID_DNS_TYPE_NSAP SVCID_DNS(0x0016)
220#define SVCID_DNS_TYPE_NSAPPTR SVCID_DNS(0x0017)
221#define SVCID_DNS_TYPE_SIG SVCID_DNS(0x0018)
222#define SVCID_DNS_TYPE_KEY SVCID_DNS(0x0019)
223#define SVCID_DNS_TYPE_PX SVCID_DNS(0x001a)
224#define SVCID_DNS_TYPE_GPOS SVCID_DNS(0x001b)
225#define SVCID_DNS_TYPE_AAAA SVCID_DNS(0x001c)
226#define SVCID_DNS_TYPE_LOC SVCID_DNS(0x001d)
227#define SVCID_DNS_TYPE_NXT SVCID_DNS(0x001e)
228#define SVCID_DNS_TYPE_SRV SVCID_DNS(0x0021)
229#define SVCID_DNS_TYPE_ATMA SVCID_DNS(0x0022)
230
231#ifdef __cplusplus
232}
233#endif
234#endif