mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-19 23:55:54 +02:00
CreateDisposition: Updated documentation
This commit is contained in:
parent
5202aed57c
commit
92d7a0531f
1 changed files with 12 additions and 15 deletions
|
@ -4,41 +4,38 @@ namespace SMBLibrary
|
||||||
public enum CreateDisposition : uint
|
public enum CreateDisposition : uint
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the file already exists, it SHOULD be superseded (overwritten).
|
/// If the file already exists, replace it with the given file.
|
||||||
/// If it does not already exist, then it SHOULD be created.
|
/// If it does not, create the given file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FILE_SUPERSEDE = 0x0000,
|
FILE_SUPERSEDE = 0x0000,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the file already exists, it SHOULD be opened rather than created.
|
/// If the file already exists, open it [instead of creating a new file].
|
||||||
/// If the file does not already exist, the operation MUST fail.
|
/// If it does not, fail the request [and do not create a new file].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FILE_OPEN = 0x0001,
|
FILE_OPEN = 0x0001,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the file already exists, the operation MUST fail.
|
/// If the file already exists, fail the request [and do not create or open the given file].
|
||||||
/// If the file does not already exist, it SHOULD be created.
|
/// If it does not, create the given file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FILE_CREATE = 0x0002,
|
FILE_CREATE = 0x0002,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the file already exists, it SHOULD be opened.
|
/// If the file already exists, open it.
|
||||||
/// If the file does not already exist, then it SHOULD be created.
|
/// If it does not, create the given file.
|
||||||
/// This value is equivalent to (FILE_OPEN | FILE_CREATE).
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FILE_OPEN_IF = 0x0003,
|
FILE_OPEN_IF = 0x0003,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the file already exists, it SHOULD be opened and truncated.
|
/// If the file already exists, open it and overwrite it.
|
||||||
/// If the file does not already exist, the operation MUST fail.
|
/// If it does not, fail the request.
|
||||||
/// The client MUST open the file with at least GENERIC_WRITE access for the command to succeed.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FILE_OVERWRITE = 0x0004,
|
FILE_OVERWRITE = 0x0004,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If the file already exists, it SHOULD be opened and truncated.
|
/// If the file already exists, open it and overwrite it.
|
||||||
/// If the file does not already exist, it SHOULD be created.
|
/// If it does not, create the given file.
|
||||||
/// The client MUST open the file with at least GENERIC_WRITE access.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FILE_OVERWRITE_IF = 0x0005,
|
FILE_OVERWRITE_IF = 0x0005,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue