I’m sorry to that.
You said the default BazisLib::DDK::File flags.I found the Constructor(c:OpenSourceBazisLibbzsddkfile.h).And I found C:OpenSourceBazisLibbzsddkdevice.cpp: File f(pLinkPath, FastFileFlags::OpenReadWrite, &st); But I don’t konw how to modify it.Can you tell me more how to modify it.Thank you very much.
_File(const FilePath &Path,
FileFlags::FileAccess Access = FileFlags::ReadAccess,
FileFlags::OpenMode OpenMode = FileFlags::OpenExisting,
FileFlags::ShareMode ShareMode = FileFlags::ShareRead,
FileFlags::FileAttribute Attributes = FileFlags::NormalFile,
ActionStatus *pStatus = NULL,
ULONG AdditionalFlags = kDefaultAdditionalFlags)
{
Initialize(Path, Access, OpenMode, ShareMode, Attributes, pStatus, AdditionalFlags, 0);
}
_File(const FilePath &Path,
FastFileFlags::OpenMode Mode,
ActionStatus *pStatus = NULL,
ULONG AdditionalFlags = kDefaultAdditionalFlags,
unsigned AdditionalObjecAttributes = 0) //e.g. OBJ_FORCE_ACCESS_CHECK
{
if (!FileModeHelpers::IsValidFastOpenMode(Mode))
{
m_hFile = 0;
ASSIGN_STATUS(pStatus, InvalidParameter);
return;
}
Initialize(Path,
FileModeHelpers::AccessFromFastOpenMode(Mode),
FileModeHelpers::OpenModeFromFastOpenMode(Mode),
FileModeHelpers::ShareModeFromFastOpenMode(Mode),
FileModeHelpers::FileAttributeFromFastOpenMode(Mode),
pStatus,
AdditionalFlags,
AdditionalObjecAttributes);
}