source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/svcguid.h@ 1175

Last change on this file since 1175 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

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