Create Spool File 0x2222 17 09

Creates and names a print spool and specifies its location.

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

Request Format

Offset

Content

Type

Request header

6

FunctionCode (17)

byte

7

SubFunctionStrucLen (3 + FileNameLength)

word (Hi-Lo)

9

SubFunctionCode (9)

byte

10

DirectoryHandle

byte

11

FileNameLength

byte

12

FileName

byte[FileNameLength]

Return Values

Decimal

Hex

Description

0

0x00

Successful

128

0x80

Lock Fail

129

0x81

Out Of Handles

132

0x84

No Create Privileges

135

0x87

Create Filename Error

141

0x8D

Some Files In Use

143

0x8F

Some Read Only

144

0x90

All Read Only

148

0x94

No Write Privileges

150

0x96

Server Out Of Memory

152

0x98

Disk Map Error

153

0x99

Directory Full Error

155

0x9B

Bad Directory Handle

156

0x9C

Invalid Path

161

0xA1

Directory I/O Error

253

0xFD

Bad Station Number

254

0xFE

Directory Locked

255

0xFF

Bad Printer, Lock Error, Hard Failure, No Files Found

Remarks

The client must have create and write privileges in the specified directory for Create Spool File to succeed.

Create Spool File is provided by the print server as a service to the client. If the client spools data to the print server without first opening a spool file, the print server automatically creates a spool file for the client in the print server's work directory. Because spool files created by the print server are not directly available to all clients, the print server allows a client to specify a location for the spool file, which allows the client to keep the spool file for future use after the print server has filled it with spooled data.

See Also

Write To Spool File 0x2222 17 00