| INT Allocate( |
| |
DWORD dwFileLength, |
|
| |
DWORD dwRecSize |
|
| ); |
The Allocate method instructs the server to reserve
sufficient storage to accommodate the new file being transferred.
Parameters
- dwFileLength
- The number of bytes to allocate storage for on the server.
- dwRecSize
- The maximum record or page size for the file. A value of zero
indicates that the file does not have a record or page structure,
and the parameter is ignored.
Return Value
If the method succeeds, the return value is the server result
code. If the method fails, the return value is FTP_ERROR. To get
extended error information, call GetLastError.
Remarks
This method should be called immediately before the
OpenFile method.
This method is ignored by those servers which do not require that
the maximum size of the file be declared beforehand. The most common
FTP servers running under UNIX and Windows do not require that file
space be pre-allocated.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csftpv12.lib
See Also
|