FILE_BASIC_INFO structure

Contains the basic information for a file. Used for file handles.

Syntax

typedef struct _FILE_BASIC_INFO {
  LARGE_INTEGER CreationTime;
  LARGE_INTEGER LastAccessTime;
  LARGE_INTEGER LastWriteTime;
  LARGE_INTEGER ChangeTime;
  DWORD         FileAttributes;
} FILE_BASIC_INFO, *PFILE_BASIC_INFO;

Members

CreationTime

The time the file was created in FILETIME format, which is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).

LastAccessTime

The time the file was last accessed in FILETIME format.

LastWriteTime

The time the file was last written to in FILETIME format.

ChangeTime

The time the file was changed in FILETIME format.

FileAttributes

The file attributes. For a list of attributes, see File Attribute Constants. If this is set to 0 in a FILE_BASIC_INFO structure passed to SetFileInformationByHandle then none of the attributes are changed.

Requirements

   
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Header winbase.h (include Windows.h)
Redistributable Windows SDK on Windows Server 2003 and Windows XP.

See Also

FILE_INFO_BY_HANDLE_CLASS

GetFileAttributes

GetFileInformationByHandleEx

SetFileInformationByHandle