Compartilhar via


2.2.4.67.2 Response

 SMB_Parameters
   {
   UCHAR  WordCount;
   Words
     {
     USHORT FID;
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   }
            


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

SMB_Parameters

SMB_Data

...

SMB_Parameters (3 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

WordCount

Words

WordCount (1 byte): This field MUST be 0x01.

Words (2 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

FID

FID (2 bytes): The returned file handle that MUST be used by subsequent write and close operations on the spool file. When the spool file is closed, the file is queued and printed.

SMB_Data (2 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ByteCount

ByteCount (2 bytes): This field MUST be 0x0000. No data is sent by this message.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS

 (0x01)

 (0x0001)

STATUS_INVALID_DEVICE_REQUEST

(0xC0000010)

EACCES

The device rejected the request.

ERRDOS

 (0x01)

ERRnofids

 (0x0004)

EMFILE

This connection has reached the maximum number open file descriptors.

ERRDOS

 (0x01)

ERRnofids

 (0x0004)

ENFILE

The server's system file table is full.

ERRDOS

 (0x01)

ERRnoaccess

 (0x0005)

STATUS_ACCESS_DENIED

(0xC0000022)

EACCES

The client does not have permission to create the spool file.

ERRDOS

 (0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

ENOMEM

The server is out of resources.

ERRSRV

 (0x02)

ERRerror

 (0x0001)

EINTR

A signal was caught during a system call.

ERRSRV

 (0x02)

ERRerror

 (0x0001)

EROFS

The spool file or spool queue resides on a read-only file system.

ERRerror

ERRSRV (0x02)

ERRerror

 (0x0001)

STATUS_INVALID_SMB

(0x00010002)

Malformed or invalid SMB request.

ERRSRV (0x02)

ERRerror

 (0x0001)

The server cannot find the spool queue for this file.

ERRSRV

 (0x02)

ERRinvtid

0x0005

STATUS_SMB_BAD_TID

(0x00050002)

The TID specified in the command was invalid.

ERRSRV

 (0x02)

ERRinvdevice

 (0x0007)

STATUS_BAD_DEVICE_TYPE

(0xC00000CB)

The TID does not refer to a printer resource.

ERRSRV

 (0x02)

ERRqfull

 (0x0031)

STATUS_PRINT_QUEUE_FULL

(0xC00000C6)

Insufficient resources to create the print job; the queue is full.

ERRSRV

 (0x02)

ERRqtoobig

 (0x0032)

STATUS_NO_SPOOL_SPACE

(0xC00000C7)

The queue is full; no entry is available to create the job.

ERRSRV

 (0x02)

ERRbaduid

 (0x005B)

STATUS_SMB_BAD_UID

(0x005B0002)

The UID is not defined as a valid ID for this SMB session, or the user identified by the UID does not have sufficient privileges.