file details
-
i want to get the following detatils for a file Name Root BlockSize FileSystemSize AvailableSpace ReadOnly EncryptionMethod CompressionMethod CaseSensitive CasePreserved CodeSet MaxFileNameLength ClusterSize FileSystemType PersistenceType OtherPersistenceType NumberOfFiles IsFixedSize ResizeIncrement is any API is there to get these informations
vineesh
-
i want to get the following detatils for a file Name Root BlockSize FileSystemSize AvailableSpace ReadOnly EncryptionMethod CompressionMethod CaseSensitive CasePreserved CodeSet MaxFileNameLength ClusterSize FileSystemType PersistenceType OtherPersistenceType NumberOfFiles IsFixedSize ResizeIncrement is any API is there to get these informations
vineesh
you can use GetFileInformationByHandle
typedef struct _BY_HANDLE_FILE_INFORMATION
{
DWORD dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
DWORD dwVolumeSerialNumber;
DWORD nFileSizeHigh;
DWORD nFileSizeLow;
DWORD nNumberOfLinks;
DWORD nFileIndexHigh;
DWORD nFileIndexLow;
}
BY_HANDLE_FILE_INFORMATION,
*PBY_HANDLE_FILE_INFORMATION;modified on Friday, July 25, 2008 7:50 AM