33#ifndef _SMBLIB_SMBLIB_COMMON_H
34#define _SMBLIB_SMBLIB_COMMON_H
44#define SMBlib_Error_Class(p) (p & 0x000000FF)
48#define SMBlib_Error_Code(p) (((unsigned int)p & 0xFFFF0000) >>16)
53#define SMBC_ERRDOS 0x01
54#define SMBC_ERRSRV 0x02
55#define SMBC_ERRHRD 0x03
56#define SMBC_ERRCMD 0xFF
60#define SMBS_BUFFERED 0x54
61#define SMBS_LOGGED 0x55
62#define SMBS_DISPLAYED 0x56
66#define SMBD_badfunc 0x01
67#define SMBD_badfile 0x02
68#define SMBD_badpath 0x03
69#define SMBD_nofids 0x04
70#define SMBD_noaccess 0x05
71#define SMBD_badfid 0x06
72#define SMBD_badmcb 0x07
73#define SMBD_nomem 0x08
74#define SMBD_badmem 0x09
75#define SMBD_badenv 0x0A
76#define SMBD_badformat 0x0B
77#define SMBD_badaccess 0x0C
78#define SMBD_baddata 0x0D
79#define SMBD_reserved 0x0E
80#define SMBD_baddrive 0x0F
81#define SMBD_remcd 0x10
82#define SMBD_diffdevice 0x11
83#define SMBD_nofiles 0x12
84#define SMBD_badshare 0x20
85#define SMBD_errlock 0x21
86#define SMBD_filexists 0x50
90#define SMBV_error 0x01
91#define SMBV_badpw 0x02
92#define SMBV_badtype 0x03
93#define SMBV_access 0x04
94#define SMBV_invnid 0x05
95#define SMBV_invnetname 0x06
96#define SMBV_invdevice 0x07
97#define SMBV_qfull 0x31
98#define SMBV_qtoobig 0x32
100#define SMBV_invpfid 0x34
101#define SMBV_paused 0x51
102#define SMBV_msgoff 0x52
103#define SMBV_noroom 0x53
104#define SMBV_rmuns 0x57
105#define SMBV_nosupport 0xFFFF
109#define SMBH_nowrite 0x13
110#define SMBH_badunit 0x14
111#define SMBH_notready 0x15
112#define SMBH_badcmd 0x16
113#define SMBH_data 0x17
114#define SMBH_badreq 0x18
115#define SMBH_seek 0x19
116#define SMBH_badmedia 0x1A
117#define SMBH_badsector 0x1B
118#define SMBH_nopaper 0x1C
119#define SMBH_write 0x1D
120#define SMBH_read 0x1E
121#define SMBH_general 0x1F
122#define SMBH_badshare 0x20
126#define SMB_AMODE_WTRU 0x4000
127#define SMB_AMODE_NOCACHE 0x1000
128#define SMB_AMODE_COMPAT 0x0000
129#define SMB_AMODE_DENYRWX 0x0010
130#define SMB_AMODE_DENYW 0x0020
131#define SMB_AMODE_DENYRX 0x0030
132#define SMB_AMODE_DENYNONE 0x0040
133#define SMB_AMODE_OPENR 0x0000
134#define SMB_AMODE_OPENW 0x0001
135#define SMB_AMODE_OPENRW 0x0002
136#define SMB_AMODE_OPENX 0x0003
137#define SMB_AMODE_FCBOPEN 0x00FF
138#define SMB_AMODE_LOCUNKN 0x0000
139#define SMB_AMODE_LOCMSEQ 0x0100
140#define SMB_AMODE_LOCMRAN 0x0200
141#define SMB_AMODE_LOCRAL 0x0300
145#define SMB_FA_ORD 0x00
146#define SMB_FA_ROF 0x01
147#define SMB_FA_HID 0x02
148#define SMB_FA_SYS 0x04
149#define SMB_FA_VOL 0x08
150#define SMB_FA_DIR 0x10
151#define SMB_FA_ARC 0x20
155#define SMB_P_Unknown -1
157#define SMB_P_CorePlus 1
158#define SMB_P_DOSLanMan1 2
159#define SMB_P_LanMan1 3
160#define SMB_P_DOSLanMan2 4
161#define SMB_P_LanMan2 5
162#define SMB_P_DOSLanMan2_1 6
163#define SMB_P_LanMan2_1 7
174#define SMBlibE_Success 0
175#define SMBlibE_Remote 1
176#define SMBlibE_BAD -1
177#define SMBlibE_LowerLayer 2
178#define SMBlibE_NotImpl 3
179#define SMBlibE_ProtLow 4
180#define SMBlibE_NoSpace 5
181#define SMBlibE_BadParam 6
182#define SMBlibE_NegNoProt 7
183#define SMBlibE_SendFailed 8
184#define SMBlibE_RecvFailed 9
185#define SMBlibE_GuestOnly 10
186#define SMBlibE_CallFailed 11
187#define SMBlibE_ProtUnknown 12
188#define SMBlibE_NoSuchMsg 13
195 unsigned char resume_key[21];
struct SMB_Connect_Def * SMB_Handle_Type
struct SMB_Tree_Structure * SMB_Tree_Handle
unsigned char file_attributes
SMB_Tree_Handle last_tree
SMB_Tree_Handle first_tree
unsigned int Capabilities