VC判断一个文件为目录的方法(2)
This attribute indicates that the file data is physically moved to offline storage. This attribute is used by Remote Storage, which is the hierarchical storage management software. Applications should not arbitrarily change this attribute.
FILE_ATTRIBUTE_READONLY
1
0x1
A file or directory that is read-only.
For a file, applications can read the file, but cannot write to it or delete it.
For a directory, applications cannot delete it.
FILE_ATTRIBUTE_REPARSE_POINT
1024
0x400
A file or directory that has an associated reparse point, or a file that is a symbolic link.
FILE_ATTRIBUTE_SPARSE_FILE
512
0x200
A file that is a sparse file.
FILE_ATTRIBUTE_SYSTEM
4
0x4
A file or directory that the operating system uses a part of, or uses exclusively.
FILE_ATTRIBUTE_TEMPORARY
256
0x100
A file that is being used for temporary storage.
File systems avoid writing data back to mass storage if sufficient cache memory is available, because typically, an application deletes a temporary file after the handle is closed. In that scenario, the system can entirely avoid writing the data. Otherwise, the data is written after the handle is closed.
FILE_ATTRIBUTE_VIRTUAL
65536
0x10000
A file is a virtual file.
希望本文所述对大家的VC程序设计有所帮助。
- 上一篇:VS2010 C++ 配置优化方案
- 下一篇:C/C++函数调用栈的实现方法