ReactOS 0.4.15-dev-7953-g1f49173
nb30.h
Go to the documentation of this file.
1#ifndef _NB30_H
2#define _NB30_H
3
4#ifdef __cplusplus
5extern "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
92typedef struct _ACTION_HEADER {
97typedef struct _ADAPTER_STATUS {
126typedef struct _FIND_NAME_BUFFER {
134typedef struct _FIND_NAME_HEADER {
139typedef struct _LANA_ENUM {
143typedef struct _NAME_BUFFER {
148typedef struct _NCB {
159 void (CALLBACK *ncb_post)(struct _NCB*);
162#ifdef _WIN64
163 UCHAR ncb_reserve[18];
164#else
166#endif
169typedef struct _SESSION_BUFFER {
177typedef struct _SESSION_HEADER {
184#ifdef __cplusplus
185}
186#endif
187#endif
#define CALLBACK
Definition: compat.h:35
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
struct _NCB * PNCB
struct _ADAPTER_STATUS * PADAPTER_STATUS
struct _ACTION_HEADER * PACTION_HEADER
struct _FIND_NAME_BUFFER * PFIND_NAME_BUFFER
struct _FIND_NAME_HEADER * PFIND_NAME_HEADER
struct _SESSION_HEADER SESSION_HEADER
struct _ACTION_HEADER ACTION_HEADER
struct _FIND_NAME_HEADER FIND_NAME_HEADER
struct _SESSION_HEADER * PSESSION_HEADER
UCHAR WINAPI Netbios(PNCB)
Definition: netbios.c:785
#define NCBNAMSZ
Definition: nb30.h:7
struct _LANA_ENUM LANA_ENUM
struct _NAME_BUFFER NAME_BUFFER
struct _ADAPTER_STATUS ADAPTER_STATUS
struct _SESSION_BUFFER * PSESSION_BUFFER
#define MAX_LANA
Definition: nb30.h:8
struct _FIND_NAME_BUFFER FIND_NAME_BUFFER
struct _NCB NCB
struct _NAME_BUFFER * PNAME_BUFFER
struct _LANA_ENUM * PLANA_ENUM
struct _SESSION_BUFFER SESSION_BUFFER
unsigned short USHORT
Definition: pedump.c:61
USHORT reserved
Definition: nb30.h:95
USHORT action_code
Definition: nb30.h:94
ULONG transport_id
Definition: nb30.h:93
WORD max_sess
Definition: nb30.h:122
DWORD reserved1
Definition: nb30.h:114
WORD frmr_recv
Definition: nb30.h:104
DWORD xmit_success
Definition: nb30.h:108
WORD free_ncbs
Definition: nb30.h:115
WORD recv_buff_unavail
Definition: nb30.h:111
UCHAR reserved0
Definition: nb30.h:100
WORD duration
Definition: nb30.h:103
WORD name_count
Definition: nb30.h:124
UCHAR rev_major
Definition: nb30.h:99
WORD t1_timeouts
Definition: nb30.h:112
DWORD recv_success
Definition: nb30.h:109
WORD frmr_xmit
Definition: nb30.h:105
WORD iframe_xmit_err
Definition: nb30.h:110
UCHAR rev_minor
Definition: nb30.h:102
WORD pending_sess
Definition: nb30.h:120
WORD max_ncbs
Definition: nb30.h:117
WORD max_dgram_size
Definition: nb30.h:119
WORD xmit_buf_unavail
Definition: nb30.h:118
WORD max_cfg_ncbs
Definition: nb30.h:116
UCHAR adapter_type
Definition: nb30.h:101
WORD max_sess_pkt_size
Definition: nb30.h:123
WORD ti_timeouts
Definition: nb30.h:113
WORD max_cfg_sess
Definition: nb30.h:121
WORD xmit_aborts
Definition: nb30.h:107
UCHAR adapter_address[6]
Definition: nb30.h:98
WORD iframe_recv_err
Definition: nb30.h:106
UCHAR length
Definition: nb30.h:127
UCHAR source_addr[6]
Definition: nb30.h:131
UCHAR frame_control
Definition: nb30.h:129
UCHAR access_control
Definition: nb30.h:128
UCHAR destination_addr[6]
Definition: nb30.h:130
UCHAR routing_info[18]
Definition: nb30.h:132
WORD node_count
Definition: nb30.h:135
UCHAR reserved
Definition: nb30.h:136
UCHAR unique_group
Definition: nb30.h:137
UCHAR lana[MAX_LANA+1]
Definition: nb30.h:141
UCHAR length
Definition: nb30.h:140
UCHAR name_flags
Definition: nb30.h:146
UCHAR name_num
Definition: nb30.h:145
Definition: nb30.h:148
HANDLE ncb_event
Definition: nb30.h:167
UCHAR ncb_retcode
Definition: nb30.h:150
PUCHAR ncb_buffer
Definition: nb30.h:153
UCHAR ncb_lana_num
Definition: nb30.h:160
UCHAR ncb_sto
Definition: nb30.h:158
void(CALLBACK *ncb_post)(struct _NCB *)
WORD ncb_length
Definition: nb30.h:154
UCHAR ncb_cmd_cplt
Definition: nb30.h:161
UCHAR ncb_callname[NCBNAMSZ]
Definition: nb30.h:155
UCHAR ncb_command
Definition: nb30.h:149
UCHAR ncb_name[NCBNAMSZ]
Definition: nb30.h:156
UCHAR ncb_rto
Definition: nb30.h:157
UCHAR ncb_reserve[10]
Definition: nb30.h:165
UCHAR ncb_num
Definition: nb30.h:152
UCHAR ncb_lsn
Definition: nb30.h:151
UCHAR state
Definition: nb30.h:171
UCHAR lsn
Definition: nb30.h:170
UCHAR remote_name[NCBNAMSZ]
Definition: nb30.h:173
UCHAR local_name[NCBNAMSZ]
Definition: nb30.h:172
UCHAR sends_outstanding
Definition: nb30.h:175
UCHAR rcvs_outstanding
Definition: nb30.h:174
UCHAR rcv_dg_outstanding
Definition: nb30.h:180
UCHAR sess_name
Definition: nb30.h:178
UCHAR num_sess
Definition: nb30.h:179
UCHAR rcv_any_outstanding
Definition: nb30.h:181
Definition: name.c:39
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
unsigned char UCHAR
Definition: xmlstorage.h:181