4.3 NetPrintJobDel

The following diagram demonstrates the steps taken to enumerate the deletion of a print job on a remote server by using the Remote Administration Protocol. Assume that this sequence is executed over an existing SMB connection established between the client and the server, and that the identifier of the job being deleted is 3. The underlying SMB transaction request and response are included for clarity.

Deletion of a print job

Figure 4: Deletion of a print job

  1. The client sends a Remote Administration Protocol request for the NetPrintJobDel command to the server in an SMB transaction request.

     Smb: C; Transact, FileName = \PIPE\LANMAN
      Protocol: SMB
      Command: Transact 37(0x25)
      DOSError: No Error
       ErrorClass: No Error
       Reserved: 0 (0x0)
       Error: No Error
      SMBHeader: Command, TID: 0x0802, PID: 0x74B2, UID: 0x0801, 
                 MID: 0x6D81
       Flags: 0 (0x0)
       Flags2: 32768 (0x8000)
       PIDHigh: 0 (0x0)
       SecuritySignature: 0x0
       Reserved: 0 (0x0)
       TreeID: 2050 (0x802)
       ProcessID: 29874 (0x74B2)
       UserID: 2049 (0x801)
       MultiplexID: 28033 (0x6D81)
      CTransaction: 
       WordCount: 14 (0xE)
       TotalParameterCount: 7 (0x7)
       TotalDataCount: 0 (0x0)
       MaxParameterCount: 4 (0x4)
       MaxDataCount: 0 (0x0)
       MaxSetupCount: 0 (0x0)
       Reserved1: 0 (0x0)
       Flags: Do not disconnect TID
        BIT0: ...............0 Do not disconnect TID
       Timeout: 5000 sec(s)
       Reserved2: 0 (0x0)
       ParameterCount: 7 (0x7)
       ParameterOffset: 90 (0x5A)
       DataCount: 0 (0x0)
       DataOffset: 0 (0x0)
       SetupCount: 0 (0x0)
       Reserved3: 0 (0x0)
       ByteCount: 34 (0x22)
       Pad: 83 (0x53)
       UnicodeFileName: \PIPE\LANMAN
       Parameters: RAPParams and NetPrintJobDel Request (7 Bytes)
          51 00 57 00 00 03 00                              (Q.W....)   
       
       
    
  2. The server deletes the print job and returns success.

     Smb: R; Transact
      Protocol: SMB
      Command: Transact 37(0x25)
      DOSError: No Error
       ErrorClass: No Error
       Reserved: 0 (0x0)
       Error: No Error
      SMBHeader: Response, TID: 0x0802, PID: 0x74B2, UID: 0x0801, 
                 MID: 0x6D81
       Flags: 128 (0x80)
       Flags2: 32768 (0x8000)
       PIDHigh: 0 (0x0)
       SecuritySignature: 0x0
       Reserved: 0 (0x0)
       TreeID: 2050 (0x802)
       ProcessID: 29874 (0x74B2)
       UserID: 2049 (0x801)
       MultiplexID: 28033 (0x6D81)
      RTransaction: 
       WordCount: 10 (0xA)
       TotalParameterCount: 4 (0x4)
       TotalDataCount: 0 (0x0)
       Reserved: 0 (0x0)
       ParameterCount: 4 (0x4)
       ParameterOffset: 56 (0x38)
       ParamDisplacement: 0 (0x0)
       DataCount: 0 (0x0)
       DataOffset: 60 (0x3C)
       DataDisplacement: 0 (0x0)
       SetupCount: 0 (0x0)
       Reserved1: 0 (0x0)
       ByteCount: 5 (0x5)
       Pad1: Binary Large Object (1 Bytes)
       Parameters: RAPOutParams (4 Bytes)                  
          00 00 00 00                                                            (....)