На главную

On-line справка по Win32 API

Написать письмо
БЕСПЛАТНАЯ ежедневная online лотерея! Выигрывай каждый день БЕСПЛАТНО!
Список всех статей A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z | Скачать Вниз

Compression Attribute



On NTFS volumes, each file and directory has a compression attribute. Other file systems may also implement a compression attribute for individual files and directories.

You can determine whether a file system supports a compression attribute for files and directories by calling the GetVolumeInformation function and examining the FS_FILE_COMPRESSION bit flag.
Use the GetFileAttributes or GetFileAttributesEx function to determine the compression attribute of a file or directory.
If a file's compression attribute is set, all of the data in the file is compressed. If the attribute is clear, none of the data in the file is compressed. There is no partially compressed state. The compression attribute is a simple Boolean indicator of compression state.

A directory's compression attribute provides a default compression attribute for newly created files and subdirectories. When you call CreateFile or CreateDirectory to create a new file or directory, the new file or directory inherits the compression attribute of its parent directory.


Пригласи друзей и счет твоего мобильника всегда будет положительным!
Предыдущая статья
 
Сайт Народ.Ру Интернет
Следующая статья
Пригласи друзей и счет твоего мобильника всегда будет положительным!

Атрибут Сжатия



В объемах NTFS, каждый файл и директорий имеет атрибут сжатия. Другие файловые системы могут также осуществить атрибуту сжатия для индивидуальных файлов и директориев.

Вы можете определить поддерживает файловая система атрибут сжатия для файлов и директории вызывая функцию GetVolumeInformation и изучая битовый флаг FS_FILE_COMPRESSION.
Используйте GetFileAttributes или функцию GetFileAttributesEx, чтобы определять атрибут сжатия файла или директория.
Если файловый атрибут сжатия установлен, все данные в файле сжаты. Если атрибут ясен, ни одно из данных в файле не сжаты. Нет частично сжатого состояния. Атрибут сжатия является простым Логическим указателем состояния сжатия.

Атрибут сжатия директория обеспечивает по умолчанию атрибуту сжатия для вновь созданных файлов и подкаталогов. Когда Вы называете CreateFile или CreateDirectory, чтобы создавать новый файл или директорий, новый файл или директорий наследует атрибут сжатия своего родительского директория.


Вверх Version 1.3, Oct 26 2010 © 2007, 2010, mrhx Вверх
 mrhx software  Русский перевод OpenGL  Русский перевод Win32 API
 
Используются технологии uCoz