annotate win32/nb30.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * nb30.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Translated from MinGW Windows headers *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 * by Stewart Gordon *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 module win32.nb30;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 private import win32.windef;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 const size_t
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16 NCBNAMSZ = 16,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 MAX_LANA = 254;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 // FIXME: are these really two sets of constants?
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 enum : UCHAR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 REGISTERING = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 REGISTERED = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 DEREGISTERED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 DUPLICATE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 DUPLICATE_DEREG, // = 7
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 UNIQUE_NAME = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 GROUP_NAME = 0x80,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 NAME_FLAGS_MASK = 0x87
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 enum : UCHAR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 LISTEN_OUTSTANDING = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 CALL_PENDING,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 SESSION_ESTABLISHED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 HANGUP_PENDING,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 HANGUP_COMPLETE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 SESSION_ABORTED // = 6
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 const char[4]
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41 ALL_TRANSPORTS = "M\0\0\0",
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42 MS_NBF = "MNBF";
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44 enum : UCHAR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 NCBCALL = 0x10,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46 NCBLISTEN,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47 NCBHANGUP, // = 0x12
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 NCBSEND = 0x14,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 NCBRECV,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50 NCBRECVANY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 NCBCHAINSEND, // = 0x17
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52 NCBDGSEND = 0x20,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53 NCBDGRECV,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54 NCBDGSENDBC,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55 NCBDGRECVBC, // = 0x23,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56 NCBADDNAME = 0x30,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57 NCBDELNAME,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58 NCBRESET,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 NCBASTAT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60 NCBSSTAT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 NCBCANCEL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62 NCBADDGRNAME,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 NCBENUM, // = 0x37
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64 NCBUNLINK = 0x70,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 NCBSENDNA,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66 NCBCHAINSENDNA,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 NCBLANSTALERT, // = 0x73
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68 NCBACTION = 0x77,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 NCBFINDNAME,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70 NCBTRACE // = 0x79
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 const UCHAR ASYNCH = 0x80;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75 enum : UCHAR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76 NRC_GOODRET = 0x00,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 NRC_BUFLEN = 0x01,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 NRC_ILLCMD = 0x03,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 NRC_CMDTMO = 0x05,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80 NRC_INCOMP,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 NRC_BADDR,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 NRC_SNUMOUT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 NRC_NORES,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 NRC_SCLOSED,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85 NRC_CMDCAN, // = 0x0b
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 NRC_DUPNAME = 0x0d,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87 NRC_NAMTFUL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 NRC_ACTSES, // = 0x0f,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89 NRC_LOCTFUL = 0x11,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90 NRC_REMTFUL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 NRC_ILLNN,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92 NRC_NOCALL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 NRC_NOWILD,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94 NRC_INUSE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 NRC_NAMERR,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96 NRC_SABORT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97 NRC_NAMCONF, // = 0x19
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98 NRC_IFBUSY = 0x21,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99 NRC_TOOMANY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100 NRC_BRIDGE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 NRC_CANOCCR, // = 0x24
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 NRC_CANCEL = 0x26,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103 NRC_DUPENV = 0x30,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 NRC_ENVNOTDEF = 0x34,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105 NRC_OSRESNOTAV,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106 NRC_MAXAPPS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 NRC_NOSAPS,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 NRC_NORESOURCES,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 NRC_INVADDRESS, // = 0x39
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110 NRC_INVDDID = 0x3B,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111 NRC_LOCKFAIL = 0x3C,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112 NRC_OPENERR = 0x3f,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 NRC_SYSTEM = 0x40,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 NRC_PENDING = 0xff
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117 struct ACTION_HEADER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118 union {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119 /* transport_id is defined as a ULONG, but both the above constants
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120 * and the documented description suggest it should be a char[4]
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 ULONG transport_id;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 char[4] c_transport_id;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125 USHORT action_code;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 USHORT reserved;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
128 alias ACTION_HEADER* PACTION_HEADER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
129
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
130 struct ADAPTER_STATUS {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
131 UCHAR[6] adapter_address;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
132 UCHAR rev_major;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
133 UCHAR reserved0;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
134 UCHAR adapter_type;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
135 UCHAR rev_minor;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
136 WORD duration;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
137 WORD frmr_recv;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
138 WORD frmr_xmit;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
139 WORD iframe_recv_err;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
140 WORD xmit_aborts;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
141 DWORD xmit_success;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
142 DWORD recv_success;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
143 WORD iframe_xmit_err;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
144 WORD recv_buff_unavail;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
145 WORD t1_timeouts;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
146 WORD ti_timeouts;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
147 DWORD reserved1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
148 WORD free_ncbs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
149 WORD max_cfg_ncbs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
150 WORD max_ncbs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
151 WORD xmit_buf_unavail;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
152 WORD max_dgram_size;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
153 WORD pending_sess;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
154 WORD max_cfg_sess;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
155 WORD max_sess;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
156 WORD max_sess_pkt_size;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
157 WORD name_count;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
158 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
159 alias ADAPTER_STATUS* PADAPTER_STATUS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
160
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
161 struct FIND_NAME_BUFFER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
162 /* From Win32 API docs
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
163 *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
164 * length
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
165 * Specifies the length, in bytes, of the FIND_NAME_BUFFER
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
166 * structure. Although this structure always occupies 33 bytes,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
167 * not all of the structure is necessarily valid.
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
168 *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
169 * On this basis, should length be initialised?
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
170 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
171 UCHAR length;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
172 UCHAR access_control;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
173 UCHAR frame_control;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
174 UCHAR[6] destination_addr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
175 UCHAR[6] source_addr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
176 UCHAR[18] routing_info;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
177 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
178 alias FIND_NAME_BUFFER* PFIND_NAME_BUFFER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
179
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
180 struct FIND_NAME_HEADER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
181 WORD node_count;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
182 UCHAR reserved;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
183 UCHAR unique_group;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
184 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
185 alias FIND_NAME_HEADER* PFIND_NAME_HEADER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
186
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
187 struct LANA_ENUM {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
188 UCHAR length;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
189 UCHAR[MAX_LANA+1] lana;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
190 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
191 alias LANA_ENUM* PLANA_ENUM;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
192
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
193 struct NAME_BUFFER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
194 UCHAR[NCBNAMSZ] name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
195 UCHAR name_num;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
196 UCHAR name_flags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
197 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
198 alias NAME_BUFFER* PNAME_BUFFER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
199
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
200 struct NCB {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
201 UCHAR ncb_command;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
202 UCHAR ncb_retcode;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
203 UCHAR ncb_lsn;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
204 UCHAR ncb_num;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
205 PUCHAR ncb_buffer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
206 WORD ncb_length;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
207 UCHAR[NCBNAMSZ] ncb_callname;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
208 UCHAR[NCBNAMSZ] ncb_name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
209 UCHAR ncb_rto;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
210 UCHAR ncb_sto;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
211 extern (Windows) void function(NCB*) ncb_post;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
212 UCHAR ncb_lana_num;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
213 UCHAR ncb_cmd_cplt;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
214 UCHAR ncb_reserve[10];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
215 HANDLE ncb_event;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
216 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
217 alias NCB* PNCB;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
218
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
219 struct SESSION_BUFFER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
220 UCHAR lsn;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
221 UCHAR state;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
222 UCHAR[NCBNAMSZ] local_name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
223 UCHAR[NCBNAMSZ] remote_name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
224 UCHAR rcvs_outstanding;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
225 UCHAR sends_outstanding;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
226 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
227 alias SESSION_BUFFER* PSESSION_BUFFER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
228
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
229 struct SESSION_HEADER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
230 UCHAR sess_name;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
231 UCHAR num_sess;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
232 UCHAR rcv_dg_outstanding;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
233 UCHAR rcv_any_outstanding;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
234 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
235 alias SESSION_HEADER* PSESSION_HEADER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
236
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
237 extern (Windows) UCHAR Netbios(PNCB);