Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #include "dr_types.h" |
2 | |||
3 | #ifdef __DOS__ |
||
4 | |||
5 | typedef struct _tagIPX_HEADER { |
||
6 | unsigned short wChecksum; |
||
7 | unsigned short wLength; |
||
8 | unsigned char bTransportControl; |
||
9 | unsigned char bPacketType; |
||
10 | unsigned char bDestNetworkNumber[4]; |
||
11 | unsigned char bDestNetworkNode[6]; |
||
12 | unsigned short wDestNetworkSocket; |
||
13 | unsigned char bSourceNetworkNumber[4]; |
||
14 | unsigned char bSourceNetworkNode[6]; |
||
15 | unsigned short wSourceNetworkSocket; |
||
16 | } _IPX_HEADER; |
||
17 | |||
18 | typedef struct _PACKET { |
||
19 | char* pData; |
||
20 | unsigned short wLength; |
||
21 | } _PACKET; |
||
22 | |||
23 | typedef struct _REAL_PACKET { |
||
24 | short wOffset; |
||
25 | short wSegment; |
||
26 | unsigned short wLength; |
||
27 | } _REAL_PACKET; |
||
28 | |||
29 | typedef struct _ECB_PACKET { |
||
30 | _PACKET sPacket; |
||
31 | _REAL_PACKET sRealPacket; |
||
32 | } _ECB_PACKET; |
||
33 | |||
34 | typedef struct _tagIPX_ECB { |
||
35 | char* pLinkAddress; |
||
36 | char* pESRRoutine; |
||
37 | unsigned char bInUse; |
||
38 | unsigned char bCompletionCode; |
||
39 | unsigned short wSocket; |
||
40 | unsigned short wConnectionID; |
||
41 | unsigned short wWorkSpace; |
||
42 | unsigned char bDriverWorkSpace[12]; |
||
43 | unsigned char bImmediateAddress[6]; |
||
44 | unsigned short wPacketCount; |
||
45 | _ECB_PACKET sPacket[2]; |
||
46 | } _IPX_ECB; |
||
47 | |||
48 | typedef struct _tagIPX_INTERNET_ADDR { |
||
49 | unsigned char bNetwork[4]; |
||
50 | unsigned char bNode[6]; |
||
51 | } _IPX_INTERNET_ADDR; |
||
52 | |||
53 | typedef struct _tagIPX_NETWORK_ADDR { |
||
54 | _IPX_INTERNET_ADDR sInternetAddr; |
||
55 | unsigned char bSocket[2]; |
||
56 | } _IPX_NETWORK_ADDR; |
||
57 | |||
58 | typedef struct _tagIPX_LOCAL_TARGET { |
||
59 | _IPX_INTERNET_ADDR sInternetAddr; |
||
60 | unsigned char bImmediate[6]; |
||
61 | } _IPX_LOCAL_TARGET; |
||
62 | |||
63 | typedef struct _tagIPX_ELEMENT { |
||
64 | unsigned short wFlags; |
||
65 | unsigned short wOffset; |
||
66 | _IPX_HEADER sHeader; |
||
67 | _IPX_ECB sECB; |
||
68 | _IPX_ECB* pECB; |
||
69 | _IPX_HEADER* pIPXHeader; |
||
70 | char* pHeader; |
||
71 | unsigned short wHSize; |
||
72 | } _IPX_ELEMENT; |
||
73 | |||
74 | typedef struct _PROT_PTR { |
||
75 | char* pData; |
||
76 | } _PROT_PTR; |
||
77 | |||
78 | typedef struct _REAL_PTR { |
||
79 | short wOffset; |
||
80 | short wSegment; |
||
81 | } _REAL_PTR; |
||
82 | |||
83 | typedef struct _PTR { |
||
84 | _PROT_PTR sPointer; |
||
85 | _REAL_PTR sRealPtr; |
||
86 | } _PTR; |
||
87 | |||
88 | typedef struct _tag_NETBIOS_NCB { |
||
89 | unsigned char bCommand; |
||
90 | unsigned char bReturnCode; |
||
91 | unsigned char bLocalSession; |
||
92 | unsigned char bNetworkNameNumber; |
||
93 | _PTR sPtr; |
||
94 | unsigned short wLength; |
||
95 | unsigned char bCallName[16]; |
||
96 | unsigned char bName[16]; |
||
97 | unsigned char bReceiveTimeOut; |
||
98 | unsigned char bSendTimeOut; |
||
99 | char* pPostFunction; |
||
100 | unsigned char bAdapter; |
||
101 | unsigned char bCompletionCode; |
||
102 | unsigned char bReserve[14]; |
||
103 | } _NETBIOS_NCB; |
||
104 | |||
105 | typedef struct _tagNETBIOS_ADAPTER_STATUS { |
||
106 | unsigned char bCardID[6]; |
||
107 | unsigned char bReleaseLevel; |
||
108 | unsigned char bReserved1; |
||
109 | unsigned char bTypeOfAdapter; |
||
110 | unsigned char bOldOrNewParameters; |
||
111 | unsigned short wReportingPeriodMinutes; |
||
112 | unsigned short wFrameRejectReceivedCount; |
||
113 | unsigned short wFrameRejectSentCount; |
||
114 | unsigned short wReceivedDataFrameErrors; |
||
115 | unsigned short wUnsuccessfulTransmissions; |
||
116 | long dwGoodTransmissions; |
||
117 | long dwGoodReceptions; |
||
118 | unsigned short wRetransmissions; |
||
119 | unsigned short wExhaustedResourceCount; |
||
120 | unsigned short wT1TimerExpiredCount; |
||
121 | unsigned short wTITimerExpiredCount; |
||
122 | unsigned char bReserved2[4]; |
||
123 | unsigned short wAvailableNCBS; |
||
124 | unsigned short wMaxNCBSConfigured; |
||
125 | unsigned short wMaxNCBSPossible; |
||
126 | unsigned short wBufferOrStationBusyCount; |
||
127 | unsigned short wMaxDatagramSize; |
||
128 | unsigned short wPendingSessions; |
||
129 | unsigned short wMaxSessionsConfigured; |
||
130 | unsigned short wMaxSessionsPossible; |
||
131 | unsigned short wMaxFrameSize; |
||
132 | unsigned short wNameCount; |
||
133 | struct { |
||
134 | unsigned char bName[16]; |
||
135 | unsigned char bNameNumber; |
||
136 | unsigned char bNameStatus; |
||
137 | } sNameTable[20]; |
||
138 | } _NETBIOS_ADAPTER_STATUS; |
||
139 | |||
140 | typedef struct _tagNETBIOS_ELEMENT { |
||
141 | unsigned short wFlags; |
||
142 | unsigned short wOffset; |
||
143 | _NETBIOS_NCB sNCB; |
||
144 | _NETBIOS_NCB* pNCB; |
||
145 | char* pHeader; |
||
146 | unsigned short wHSize; |
||
147 | } _NETBIOS_ELEMENT; |
||
148 | |||
149 | typedef struct _tagNETBIOS_LOCAL_TARGET { |
||
150 | unsigned char bNode[16]; |
||
151 | } _NETBIOS_LOCAL_TARGET; |
||
152 | |||
153 | typedef struct _tagXFER_BLOCK_HEADER { |
||
154 | unsigned int wSequence; |
||
155 | unsigned int wType; |
||
156 | unsigned int wID; |
||
157 | unsigned int wLength; |
||
158 | unsigned int wNode; |
||
159 | unsigned int wUser1; |
||
160 | } _XFER_BLOCK_HEADER; |
||
161 | |||
162 | typedef struct _NETNOW_NODE_ADDR { |
||
163 | _IPX_LOCAL_TARGET sIPX; |
||
164 | _NETBIOS_LOCAL_TARGET sNETBIOS; |
||
165 | } _NETNOW_NODE_ADDR; |
||
166 | |||
167 | typedef struct _tagRMI_REGS _RMI_REGS; |
||
168 | typedef struct _tagBREGS _HMI_BREGS; |
||
169 | typedef struct _tagWREGS _HMI_WREGS; |
||
170 | typedef struct _tagDREGS _HMI_DREGS; |
||
171 | typedef struct _tagSREGS _HMI_SREGS; |
||
172 | typedef struct _tagIPX_HEADER _IPX_HEADER; |
||
173 | typedef struct _tagIPX_ECB _IPX_ECB; |
||
174 | typedef struct _tagIPX_INTERNET_ADDR _IPX_INTERNET_ADDR; |
||
175 | typedef struct _tagIPX_NETWORK_ADDR _IPX_NETWORK_ADDR; |
||
176 | typedef struct _tagIPX_LOCAL_TARGET _IPX_LOCAL_TARGET; |
||
177 | typedef struct _tagIPX_ELEMENT _IPX_ELEMENT; |
||
178 | typedef struct _tag_NETBIOS_NCB _NETBIOS_NCB; |
||
179 | typedef struct _tagNETBIOS_ADAPTER_STATUS _NETBIOS_ADAPTER_STATUS; |
||
180 | typedef struct _tagNETBIOS_ELEMENT _NETBIOS_ELEMENT; |
||
181 | typedef struct _tagNETBIOS_LOCAL_TARGET _NETBIOS_LOCAL_TARGET; |
||
182 | typedef struct _tagXFER_BLOCK_HEADER _XFER_BLOCK_HEADER; |
||
183 | |||
184 | typedef struct tPD_net_player_info { |
||
185 | _IPX_LOCAL_TARGET addr_ipx; |
||
186 | } tPD_net_player_info; |
||
187 | |||
188 | typedef struct tPD_net_game_info { |
||
189 | _IPX_LOCAL_TARGET addr_ipx; |
||
190 | tU32 last_response; |
||
191 | } tPD_net_game_info; |
||
192 | |||
193 | #endif |