ReactOS  0.4.13-dev-79-gcd489d8
nb30.h
Go to the documentation of this file.
1 #ifndef _NB30_H
2 #define _NB30_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 #define NCBNAMSZ 16
8 #define MAX_LANA 254
9 #define NAME_FLAGS_MASK 0x87
10 #define GROUP_NAME 0x80
11 #define UNIQUE_NAME 0x00
12 #define REGISTERING 0x00
13 #define REGISTERED 0x04
14 #define DEREGISTERED 0x05
15 #define DUPLICATE 0x06
16 #define DUPLICATE_DEREG 0x07
17 #define LISTEN_OUTSTANDING 0x01
18 #define CALL_PENDING 0x02
19 #define SESSION_ESTABLISHED 0x03
20 #define HANGUP_PENDING 0x04
21 #define HANGUP_COMPLETE 0x05
22 #define SESSION_ABORTED 0x06
23 #define ALL_TRANSPORTS "M\0\0\0"
24 #define MS_NBF "MNBF"
25 #define NCBCALL 0x10
26 #define NCBLISTEN 0x11
27 #define NCBHANGUP 0x12
28 #define NCBSEND 0x14
29 #define NCBRECV 0x15
30 #define NCBRECVANY 0x16
31 #define NCBCHAINSEND 0x17
32 #define NCBDGSEND 0x20
33 #define NCBDGRECV 0x21
34 #define NCBDGSENDBC 0x22
35 #define NCBDGRECVBC 0x23
36 #define NCBADDNAME 0x30
37 #define NCBDELNAME 0x31
38 #define NCBRESET 0x32
39 #define NCBASTAT 0x33
40 #define NCBSSTAT 0x34
41 #define NCBCANCEL 0x35
42 #define NCBADDGRNAME 0x36
43 #define NCBENUM 0x37
44 #define NCBUNLINK 0x70
45 #define NCBSENDNA 0x71
46 #define NCBCHAINSENDNA 0x72
47 #define NCBLANSTALERT 0x73
48 #define NCBACTION 0x77
49 #define NCBFINDNAME 0x78
50 #define NCBTRACE 0x79
51 #define ASYNCH 0x80
52 #define NRC_GOODRET 0x00
53 #define NRC_BUFLEN 0x01
54 #define NRC_ILLCMD 0x03
55 #define NRC_CMDTMO 0x05
56 #define NRC_INCOMP 0x06
57 #define NRC_BADDR 0x07
58 #define NRC_SNUMOUT 0x08
59 #define NRC_NORES 0x09
60 #define NRC_SCLOSED 0x0a
61 #define NRC_CMDCAN 0x0b
62 #define NRC_DUPNAME 0x0d
63 #define NRC_NAMTFUL 0x0e
64 #define NRC_ACTSES 0x0f
65 #define NRC_LOCTFUL 0x11
66 #define NRC_REMTFUL 0x12
67 #define NRC_ILLNN 0x13
68 #define NRC_NOCALL 0x14
69 #define NRC_NOWILD 0x15
70 #define NRC_INUSE 0x16
71 #define NRC_NAMERR 0x17
72 #define NRC_SABORT 0x18
73 #define NRC_NAMCONF 0x19
74 #define NRC_IFBUSY 0x21
75 #define NRC_TOOMANY 0x22
76 #define NRC_BRIDGE 0x23
77 #define NRC_CANOCCR 0x24
78 #define NRC_CANCEL 0x26
79 #define NRC_DUPENV 0x30
80 #define NRC_ENVNOTDEF 0x34
81 #define NRC_OSRESNOTAV 0x35
82 #define NRC_MAXAPPS 0x36
83 #define NRC_NOSAPS 0x37
84 #define NRC_NORESOURCES 0x38
85 #define NRC_INVADDRESS 0x39
86 #define NRC_INVDDID 0x3B
87 #define NRC_LOCKFAIL 0x3C
88 #define NRC_OPENERR 0x3f
89 #define NRC_SYSTEM 0x40
90 #define NRC_PENDING 0xff
91 #define NCB_POST void CALLBACK
92 typedef struct _ACTION_HEADER {
97 typedef struct _ADAPTER_STATUS {
126 typedef struct _FIND_NAME_BUFFER {
134 typedef struct _FIND_NAME_HEADER {
139 typedef struct _LANA_ENUM {
143 typedef struct _NAME_BUFFER {
148 typedef struct _NCB {
159  void (CALLBACK *ncb_post)(struct _NCB*);
162 #ifdef _WIN64
163  UCHAR ncb_reserve[18];
164 #else
166 #endif
168 } NCB,*PNCB;
169 typedef struct _SESSION_BUFFER {
177 typedef struct _SESSION_HEADER {
184 #ifdef __cplusplus
185 }
186 #endif
187 #endif
void(CALLBACK *ncb_post)(struct _NCB *)
UCHAR ncb_num
Definition: nb30.h:152
UCHAR local_name[NCBNAMSZ]
Definition: nb30.h:172
struct _LANA_ENUM * PLANA_ENUM
UCHAR reserved0
Definition: nb30.h:100
UCHAR remote_name[NCBNAMSZ]
Definition: nb30.h:173
UCHAR frame_control
Definition: nb30.h:129
UCHAR ncb_reserve[10]
Definition: nb30.h:165
UCHAR adapter_type
Definition: nb30.h:101
UCHAR ncb_rto
Definition: nb30.h:157
WORD max_ncbs
Definition: nb30.h:117
UCHAR access_control
Definition: nb30.h:128
WORD duration
Definition: nb30.h:103
WORD max_sess_pkt_size
Definition: nb30.h:123
UCHAR ncb_callname[NCBNAMSZ]
Definition: nb30.h:155
WORD frmr_xmit
Definition: nb30.h:105
UCHAR routing_info[18]
Definition: nb30.h:132
unsigned char * PUCHAR
Definition: retypes.h:3
UCHAR name_num
Definition: nb30.h:145
UCHAR reserved
Definition: nb30.h:136
Definition: nb30.h:148
UCHAR adapter_address[6]
Definition: nb30.h:98
#define MAX_LANA
Definition: nb30.h:8
#define CALLBACK
Definition: compat.h:27
WORD t1_timeouts
Definition: nb30.h:112
struct _ACTION_HEADER * PACTION_HEADER
struct _NCB NCB
UCHAR sess_name
Definition: nb30.h:178
UCHAR name_flags
Definition: nb30.h:146
struct _ADAPTER_STATUS ADAPTER_STATUS
UCHAR WINAPI Netbios(PNCB)
Definition: netbios.c:785
struct _NAME_BUFFER * PNAME_BUFFER
struct _SESSION_HEADER * PSESSION_HEADER
UCHAR length
Definition: nb30.h:140
WORD max_cfg_ncbs
Definition: nb30.h:116
struct _FIND_NAME_HEADER * PFIND_NAME_HEADER
WORD xmit_aborts
Definition: nb30.h:107
WORD xmit_buf_unavail
Definition: nb30.h:118
WORD iframe_recv_err
Definition: nb30.h:106
struct _NAME_BUFFER NAME_BUFFER
struct _ADAPTER_STATUS * PADAPTER_STATUS
UCHAR rcv_any_outstanding
Definition: nb30.h:181
WORD name_count
Definition: nb30.h:124
UCHAR length
Definition: nb30.h:127
#define NCBNAMSZ
Definition: nb30.h:7
struct _FIND_NAME_BUFFER FIND_NAME_BUFFER
WORD max_dgram_size
Definition: nb30.h:119
UCHAR unique_group
Definition: nb30.h:137
struct _NCB * PNCB
UCHAR state
Definition: nb30.h:171
USHORT reserved
Definition: nb30.h:95
WORD ncb_length
Definition: nb30.h:154
struct _SESSION_HEADER SESSION_HEADER
#define WINAPI
Definition: msvc.h:8
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD reserved1
Definition: nb30.h:114
UCHAR rcv_dg_outstanding
Definition: nb30.h:180
unsigned char UCHAR
Definition: xmlstorage.h:181
struct _LANA_ENUM LANA_ENUM
struct _ACTION_HEADER ACTION_HEADER
HANDLE ncb_event
Definition: nb30.h:167
UCHAR ncb_lana_num
Definition: nb30.h:160
UCHAR destination_addr[6]
Definition: nb30.h:130
WORD recv_buff_unavail
Definition: nb30.h:111
WORD free_ncbs
Definition: nb30.h:115
WORD ti_timeouts
Definition: nb30.h:113
struct _SESSION_BUFFER SESSION_BUFFER
UCHAR ncb_cmd_cplt
Definition: nb30.h:161
UCHAR lana[MAX_LANA+1]
Definition: nb30.h:141
WORD pending_sess
Definition: nb30.h:120
struct _FIND_NAME_HEADER FIND_NAME_HEADER
unsigned short USHORT
Definition: pedump.c:61
UCHAR rcvs_outstanding
Definition: nb30.h:174
DWORD recv_success
Definition: nb30.h:109
PUCHAR ncb_buffer
Definition: nb30.h:153
USHORT action_code
Definition: nb30.h:94
WORD max_sess
Definition: nb30.h:122
UCHAR rev_major
Definition: nb30.h:99
UCHAR rev_minor
Definition: nb30.h:102
UCHAR ncb_name[NCBNAMSZ]
Definition: nb30.h:156
Definition: name.c:36
WORD node_count
Definition: nb30.h:135
UCHAR ncb_lsn
Definition: nb30.h:151
struct _SESSION_BUFFER * PSESSION_BUFFER
UCHAR lsn
Definition: nb30.h:170
UCHAR ncb_command
Definition: nb30.h:149
unsigned int ULONG
Definition: retypes.h:1
struct _FIND_NAME_BUFFER * PFIND_NAME_BUFFER
UCHAR num_sess
Definition: nb30.h:179
UCHAR source_addr[6]
Definition: nb30.h:131
WORD max_cfg_sess
Definition: nb30.h:121
WORD iframe_xmit_err
Definition: nb30.h:110
ULONG transport_id
Definition: nb30.h:93
WORD frmr_recv
Definition: nb30.h:104
UCHAR ncb_retcode
Definition: nb30.h:150
UCHAR ncb_sto
Definition: nb30.h:158
UCHAR sends_outstanding
Definition: nb30.h:175
DWORD xmit_success
Definition: nb30.h:108