Write To Spool File 0x2222 17 00

Appends the specified data to the end of the client's current spool file.

NetWare Server:2.x, 3.x, 4.x, 5.x

Request Format

Offset

Content

Type

Request header

6

FunctionCode (17)

byte

7

SubFunctionStrucLen (2 + DataLength)

word (Hi-Lo)

9

SubFunctionCode (0)

byte

10

DataLength

byte

11

Data

byte[DataLength]

Return Values

Decimal

Hex

Description

0

0x00

Successful

1

0x01

Out Of Disk Space

128

0x80

Lock Fail

129

0x81

Out Of Handles

135

0x87

Create Filename Error

136

0x88

Invalid File Handle

141

0x8D

Some Files In Use

142

0x8E

All Files In Use

143

0x8F

Some Read Only

144

0x90

All Read Only

148

0x94

No Write Privileges

149

0x95

File Detached

150

0x96

Server Out Of Memory

152

0x98

Disk Map Error

153

0x99

Directory Full Error

161

0xA1

Directory I/O Error

162

0xA2

I/O Lock Error

255

0xFF

Failure, No Files Found

Remarks

If the client does not have a current spool file, the print server creates the file in its work area and writes the data to it.

The print server makes no assumptions about the format or content that it writes to a spool file; the client must create a data stream that produces the desired output when it is sent to the target printer.

See Also

Close Spool File 0x2222 17 01, Create Spool File 0x2222 17 09, Get Printer's Queue 0x2222 17 10