This message is sent to create a new data file or truncate an existing data file to length zero, and open the file.
Client Request ================================== |
Description ================================= |
UCHAR WordCount; | Count of parameter words = 3 |
USHORT FileAttributes; | New file attributes |
UTIME CreationTime; | Creation time for created file |
USHORT ByteCount; | Count of data bytes; min = 2 |
UCHAR BufferFormat; | 0x04 |
STRING FileName[]; | File name |
FileAttributes specify the attributes of the newly created file, their encoding is described in the "Attribute Encoding" section of this document.
CreationTime is the creation timestamp the file should be given, server support for these is optional.
Server Response ================================== |
Description ================================= |
UCHAR WordCount; | Count of parameter words = 1 |
USHORT Fid; | File handle |
USHORT ByteCount; | Count of data bytes = 0 |
The returned fid can be used in subsequent fid-related messages.
The access permissions granted on a created file are read/write permission for the creator. Access permissions for truncated files are not modified. The newly created or truncated file is opened in read/write/compatibility mode.