API函数详解:BY_HANDLE_FILE_INFORMATION函数

类型定义
Type BY_HANDLE_FILE-INFORMATION ' 52 Bytes
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
dwVolumeSerialNumber As Long
nFileSizeHigh As Long
nFileSizeLow As Long
nNumberOfLinks As Long
nFileIndexHigh As Long
nFileIndexLow As Long
End Type
Windows API函数功能说明
Used by theGetFileInformationByHandle function to retrieve information about a file.
字段表
字段类型及说明
dwFileAttributesLong,Refer to theFile Attribute Types table that follows.
ftCreationTimeFILETIME,Time of file creation. Zero if file system does not support file creation time.
ftLastAccessTimeFILETIME,Time of last access to this file. Zero if file system does not support file last access time.
ftLastWriteTimeFILETIME,Time of last write operation to this file.
dwVolumeSerialNumberLong,Serial number of the volume that contains the file.
nFileSizeHighLong,High-order word of the file size.
nFileSizeLowLong,Low-order word of the file size.
nNumberOfLinksLong,Number of links to this file. Always 1 for the FAT file system and HPFS.
nFileIndexHighLong,High-order word of a unique identifier associated with the file.
nFileIndexLowLong,Low-order word of a unique identifier associated with the file. Use this element and the dwVolumeSerialNumber to uniquely identify a file.
File Attribute Types table
FILE_ATTRIBUTE_ARCHIVE    Archive file.
FILE_ATTRIBUTE_COMPRESSED    The file or directory is compressed.
FILE_ATTRIBUTE_DIRECTORY    File is a directory.
FILE_ATTRIBUTE_HIDDEN    File is hidden.
FILE_ATTRIBUTE_NORMAL    File is normal (no other file attributes are specified).
FILE_ATTRIBUTE_READONLY    File is read-only.
FILE_ATTRIBUTE_SYSTEM    File is a system file.
FILE_ATTRIBUTE_NORMAL    File is a temporary file.
注解
dwFileAttributes字段包含了带有FILE_ATTRIBUTE_???前缀的一个或多个常数的组合,它们对文件属性进行了描述。nNumberOfLinks则列出了NFS下对一个文件的链接数量。nFileIndexHigh和nFileIndexLow字段合并起来构成一个64位数字,它对磁盘卷中的一个文件进行了唯一标志

上页:API函数详解:XFORM函数 下页:API函数详解:AbortPath函数

Windows API函数大全

Windows API函数首页Windows API函数按字母排列
控件与消息函数硬件与系统函数
设备场景函数绘图函数
位图、图标和光栅运算函数菜单函数
文本和字体函数打印函数
文件处理函数进程和线程函数
Windows消息函数网络函数
版权所有 © 中山市飞娥软件工作室 证书:粤ICP备09170368号