37#define ERRbadfunc 1/* Invalid function. The server did not recognize or could not perform a system call generated by the server, e.g., set the DIRECTORY attribute on a data file, invalid seek mode. */
38#define ERRbadfile 2/*File not found. The last component of a file's pathname could not be found. */
39#define ERRbadpath 3/* Directory invalid. A directory component in a pathname could not be found. */
40#define ERRnofids 4/* Too many open files. The server has no file handles available. */
41#define ERRnoaccess 5/* Access denied, the client's context does not permit the requested function. This includes the following conditions: invalid rename command, write to Fid open for read only, read on Fid open for write only, attempt to delete a non-empty directory */
42#define ERRbadfid 6/* Invalid file handle. The file handle specified was not recognized by the server. */
43#define ERRbadmcb 7/* Memory control blocks destroyed. */
44#define ERRnomem 8/* Insufficient server memory to perform the requested function. */
55#define ERRbadshare 32/* The sharing mode specified for an Open conflicts with existing FIDs on the file. */
56#define ERRlock 33/* A Lock request conflicted with an existing lock or specified an invalid mode, or an Unlock requested attempted to remove a lock held by another process. */
80#define ERRerror 1/* Non-specific error code. It is returned under the following conditions: resource other than disk space exhausted (e.g. TIDs), first SMB command was not negotiate, multiple negotiates attempted, and internal server error. */
81#define ERRbadpw 2/* Bad password - name/password pair in a TreeConnect or Session Setup are invalid. */
82#define ERRbadtype 3/* used for indicating DFS referral needed */
83#define ERRaccess 4/* The client does not have the necessary access rights within the specified context for requested function. */
84#define ERRinvtid 5/* The Tid specified in a command was invalid. */
85#define ERRinvnetname 6/* Invalid network name in tree connect. */
86#define ERRinvdevice 7/* Invalid device - printer request made to non-printer connection or non-printer request made to printer connection. */
87#define ERRqfull 49/* Print queue full (files) -- returned by open print file. */
88#define ERRqtoobig 50/* Print queue full -- no space. */