ECP_OPEN_PARAMETERS structure
The ECP_OPEN_PARAMETERS structure allows a caller to specify the purpose of opening of a file without interfering with existing handles and/or oplocks on the file.
Syntax
typedef struct _ECP_OPEN_PARAMETERS {
USHORT Size;
USHORT Reserved;
ULONG Flags;
} ECP_OPEN_PARAMETERS, *PECP_OPEN_PARAMETERS;
Members
Size
Specifies the size of this context structure, in bytes.Reserved
Reserved for future use. This must be initialized to 0.Flags
Flags that Specify the parameters or purpose for opening a file. Contains one of the following values:Name Value Description ECP_OPEN_PARAMETERS_FLAG_OPEN_FOR_READ 0x01 Opening file to read it. ECP_OPEN_PARAMETERS_FLAG_OPEN_FOR_WRITE 0x02 Opening file to write to it. ECP_OPEN_PARAMETERS_FLAG_OPEN_FOR_DELETE 0x04 Opening file to delete it.
Requirements
Version |
Available starting with Windows 10, version 1709. |
Header |
Ntifs.h (include Ntifs.h) |