INT SetFileStructure( |
|
UINT nType |
|
); |
The SetFileStructure method sets the default file structure
for the current client session, which indicates what type of file is
being opened or created on the server.
Parameters
- nType
- Specifies the default type of file structure being opened or
created on the server. This parameter can be one of the
following values.
Value |
Description |
FILE_STRUCT_NONE |
The file has no inherent structure and is considered to be
a stream of bytes. This is the default structure for file
transfers. |
FILE_STRUCT_RECORD |
The file uses a record structure. This file structure is
currently not supported. |
FILE_STRUCT_PAGE |
The file uses a page structure. This file structure is
currently not supported. |
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
The file structure should be set before a file is opened or
created on the server. Once the file type is set, it is in
effect for all files that are subsequently opened or created.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftpv10.lib
Unicode: Implemented as Unicode and ANSI versions.
See Also
OpenFile,
SetFileMode,
SetFileType,
SetPassiveMode
|