VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/nb30.h@ 33282

Last change on this file since 33282 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 5.7 KB
Line 
1/*
2 * Copyright (C) 2001 Mike McCormack
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef NCB_INCLUDED
29#define NCB_INCLUDED
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35#define NCBNAMSZ 16
36#define MAX_LANA 0xfe
37
38#define NCBCALL 0x10
39#define NCBLISTEN 0x11
40#define NCBHANGUP 0x12
41#define NCBSEND 0x14
42#define NCBRECV 0x15
43#define NCBRECVANY 0x16
44#define NCBCHAINSEND 0x17
45#define NCBDGSEND 0x20
46#define NCBDGRECV 0x21
47#define NCBDGSENDBC 0x22
48#define NCBDGRECVBC 0x23
49#define NCBADDNAME 0x30
50#define NCBDELNAME 0x31
51#define NCBRESET 0x32
52#define NCBASTAT 0x33
53#define NCBSSTAT 0x34
54#define NCBCANCEL 0x35
55#define NCBADDGRNAME 0x36
56#define NCBENUM 0x37
57#define NCBUNLINK 0x70
58#define NCBSENDNA 0x71
59#define NCBCHAINSENDNA 0x72
60#define NCBLANSTALERT 0x73
61#define NCBACTION 0x77
62#define NCBFINDNAME 0x78
63#define NCBTRACE 0x79
64
65#define ASYNCH 0x80
66
67typedef struct _NCB
68{
69 UCHAR ncb_command;
70 UCHAR ncb_retcode;
71 UCHAR ncb_lsn;
72 UCHAR ncb_num;
73 PUCHAR ncb_buffer;
74 WORD ncb_length;
75 UCHAR ncb_callname[NCBNAMSZ];
76 UCHAR ncb_name[NCBNAMSZ];
77 UCHAR ncb_rto;
78 UCHAR ncb_sto;
79 VOID (CALLBACK *ncb_post)(struct _NCB *);
80 UCHAR ncb_lana_num;
81 UCHAR ncb_cmd_cplt;
82#ifdef _WIN64
83 UCHAR ncb_reserve[18];
84#else
85 UCHAR ncb_reserve[10];
86#endif
87 HANDLE ncb_event;
88} NCB, *PNCB;
89
90typedef struct _ADAPTER_STATUS
91{
92 UCHAR adapter_address[6];
93 UCHAR rev_major;
94 UCHAR reserved0;
95 UCHAR adapter_type;
96 UCHAR rev_minor;
97 WORD duration;
98 WORD frmr_recv;
99 WORD frmr_xmit;
100 WORD iframe_recv_error;
101 WORD xmit_aborts;
102 DWORD xmit_success;
103 DWORD recv_success;
104 WORD iframe_xmit_error;
105 WORD recv_buffer_unavail;
106 WORD t1_timeouts;
107 WORD ti_timeouts;
108 DWORD reserved1;
109 WORD free_ncbs;
110 WORD max_cfg_ncbs;
111 WORD max_ncbs;
112 WORD xmit_buf_unavail;
113 WORD max_dgram_size;
114 WORD pending_sess;
115 WORD max_cfg_sess;
116 WORD max_sess;
117 WORD max_sess_pkt_size;
118 WORD name_count;
119} ADAPTER_STATUS, *PADAPTER_STATUS;
120
121typedef struct _NAME_BUFFER
122{
123 UCHAR name[NCBNAMSZ];
124 UCHAR name_num;
125 UCHAR name_flags;
126} NAME_BUFFER, *PNAME_BUFFER;
127
128#define NAME_FLAGS_MASK 0x87
129#define GROUP_NAME 0x80
130#define UNIQUE_NAME 0x00
131#define REGISTERING 0x00
132#define REGISTERED 0x04
133#define DEREGISTERED 0x05
134#define DUPLICATE 0x06
135#define DUPLICATE_DEREG 0x07
136
137typedef struct _LANA_ENUM
138{
139 UCHAR length;
140 UCHAR lana[MAX_LANA+1];
141} LANA_ENUM, *PLANA_ENUM;
142
143typedef struct _FIND_NAME_HEADER
144{
145 WORD node_count;
146 UCHAR reserved;
147 UCHAR unique_group;
148} FIND_NAME_HEADER, *PFIND_NAME_HEADER;
149
150typedef struct _FIND_NAME_BUFFER
151{
152 UCHAR length;
153 UCHAR access_control;
154 UCHAR frame_control;
155 UCHAR destination_addr[6];
156 UCHAR source_addr[6];
157 UCHAR routing_info[6];
158} FIND_NAME_BUFFER, *PFIND_NAME_BUFFER;
159
160typedef struct _SESSION_HEADER {
161 UCHAR sess_name;
162 UCHAR num_sess;
163 UCHAR rcv_dg_outstanding;
164 UCHAR rcv_any_outstanding;
165} SESSION_HEADER, *PSESSION_HEADER;
166
167typedef struct _SESSION_BUFFER {
168 UCHAR lsn;
169 UCHAR state;
170 UCHAR local_name[NCBNAMSZ];
171 UCHAR remote_name[NCBNAMSZ];
172 UCHAR rcvs_outstanding;
173 UCHAR sends_outstanding;
174} SESSION_BUFFER, *PSESSION_BUFFER;
175
176#define LISTEN_OUTSTANDING 0x01
177#define CALL_PENDING 0x02
178#define SESSION_ESTABLISHED 0x03
179#define HANGUP_PENDING 0x04
180#define HANGUP_COMPLETE 0x05
181#define SESSION_ABORTED 0x06
182
183#define ALL_TRANSPORTS "M\0\0\0"
184
185#define NRC_GOODRET 0x00
186#define NRC_BUFLEN 0x01
187#define NRC_ILLCMD 0x03
188#define NRC_CMDTMO 0x05
189#define NRC_INCOMP 0x06
190#define NRC_BADDR 0x07
191#define NRC_SNUMOUT 0x08
192#define NRC_NORES 0x09
193#define NRC_SCLOSED 0x0a
194#define NRC_CMDCAN 0x0b
195#define NRC_DUPNAME 0x0d
196#define NRC_NAMTFUL 0x0e
197#define NRC_ACTSES 0x0f
198#define NRC_LOCTFUL 0x11
199#define NRC_REMTFUL 0x12
200#define NRC_ILLNN 0x13
201#define NRC_NOCALL 0x14
202#define NRC_NOWILD 0x15
203#define NRC_INUSE 0x16
204#define NRC_NAMERR 0x17
205#define NRC_SABORT 0x18
206#define NRC_NAMCONF 0x19
207#define NRC_IFBUSY 0x21
208#define NRC_TOOMANY 0x22
209#define NRC_BRIDGE 0x23
210#define NRC_CANOCCR 0x24
211#define NRC_CANCEL 0x26
212#define NRC_DUPENV 0x30
213#define NRC_ENVNOTDEF 0x34
214#define NRC_OSRESNOTAV 0x35
215#define NRC_MAXAPPS 0x36
216#define NRC_NOSAPS 0x37
217#define NRC_NORESOURCES 0x38
218#define NRC_INVADDRESS 0x39
219#define NRC_INVDDID 0x3b
220#define NRC_LOCKFAIL 0x3c
221#define NRC_OPENERROR 0x3f
222#define NRC_SYSTEM 0x40
223#define NRC_PENDING 0xff
224
225UCHAR WINAPI Netbios(PNCB pncb);
226
227#ifdef __cplusplus
228}
229#endif
230
231#endif /* NCB_INCLUDED */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette