NWSetCompressedFileSize(3nw)


NWSetCompressedFileSize -- attempts to set logical file size for compressed file

Synopsis

   #include <nwfile.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWSetCompressedFileSize (NWCONN_HANDLE conn, nuint32 fileHandle, nuint32 reqFileSize, pnuint32 resFileSize);

Description

The parameters are as follows:

conn
(IN) Specifies the connection handle of the associated NetWare server.

fileHandle
(IN) Specifies an OS or NetWare file handle.

reqFileSize
(IN) Specifies the requested file size.

resFileSize
(OUT) Points to the size actually assigned by the OS.

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x8988
INVALID_FILE_HANDLE

0x89A8
ERR_ACCESS_DENIED

Notices

The logical file size is the true size of the file as reported by the client operating systems. When a file is compressed, it shrinks in physical size, but its logical size should remain the same. In cases where the client forces the creation of a compressed file (by opening a file in compressed mode), the NetWare OS gets the actual size of the file by calling NWSetCompressedFileSize.

If fileHandle contains a NetWare handle, conn contains the connection handle of the associated server. If Netx is running and a DOS file handle is passed, conn must also contain a valid connection ID. In all other circumstances, conn is ignored.

On the Mac OS, the connection handle is ignored and fileHandle is an abstracted file handle.

Services

File Systems

NCP calls

0x2222 90 12 Set Compressed File Size

 
 0x2222   90   12   Set Compressed File Size 

30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.