The server creates a data file in Directory relative to Tid in the SMB header and assigns a unique name to it.
Client Request ================================== |
Server Response ================================= |
UCHAR WordCount; | Count of parameter words = 3 |
USHORT reserved; | Ignored by the server |
UTIME CreationTime; | New file's creation time stamp |
USHORT ByteCount; | Count of data bytes; min = 2 |
UCHAR BufferFormat; | 0x04 |
STRING DirectoryName[]; | Directory name |
Server Response ================================== |
Description ================================= |
UCHAR WordCount; | Count of parameter words = 1 |
USHORT Fid; | File handle |
USHORT ByteCount; | Count of data bytes; min = 2 |
UCHAR BufferFormat; | 0x04 |
STRING Filename[]; | File name |
Fid is the returned handle for future file access. Filename is the name of the file which was created within the requested Directory. It is opened in compatibility mode with read/write access for the client.
Support of CreationTime by the server is optional.