Macro definition for file properties

Source: Internet
Author: User

The WIN32_FIND_DATA structure object that is obtained with FindFirstFile and FindNextFile is populated with information about the file, where Wfileattributes is a DWORD value, and the file attributes are,
The following is the macro definition for the file properties
#define File_share_read 0x00000001
#define File_share_write 0x00000002
#define FILE_SHARE_DELETE 0x00000004
#define FILE_ATTRIBUTE_READONLY 0x00000001
#define File_attribute_hidden 0x00000002
#define File_attribute_system 0x00000004
#define File_attribute_directory 0x00000010
#define File_attribute_archive 0x00000020
#define File_attribute_encrypted 0x00000040
#define FILE_ATTRIBUTE_NORMAL 0x00000080
#define File_attribute_temporary 0x00000100
#define File_attribute_sparse_file 0x00000200
#define File_attribute_reparse_point 0x00000400
#define File_attribute_compressed 0x00000800
#define File_attribute_offline 0x00001000
#define File_attribute_not_content_indexed 0x00002000
#define FILE_NOTIFY_CHANGE_FILE_NAME 0x00000001
#define FILE_NOTIFY_CHANGE_DIR_NAME 0x00000002
#define File_notify_change_attributes 0x00000004
#define File_notify_change_size 0x00000008
#define File_notify_change_last_write 0x00000010
#define File_notify_change_last_access 0x00000020
#define File_notify_change_creation 0x00000040
#define File_notify_change_security 0x00000100
#define File_action_added 0x00000001
#define File_action_removed 0x00000002
#define File_action_modified 0x00000003
#define FILE_ACTION_RENAMED_OLD_NAME 0x00000004
#define File_action_renamed_new_name 0x00000005
#define Mailslot_no_message ((DWORD)-1)
#define Mailslot_wait_forever ((DWORD)-1)
#define File_case_sensitive_search 0x00000001
#define File_case_preserved_names 0x00000002
#define File_unicode_on_disk 0x00000004
#define FILE_PERSISTENT_ACLS 0x00000008
#define File_file_compression 0x00000010
#define File_volume_quotas 0x00000020
#define File_supports_sparse_files 0x00000040
#define File_supports_reparse_points 0x00000080
#define File_supports_remote_storage 0x00000100
#define File_volume_is_compressed 0x00008000
#define File_supports_object_ids 0x00010000
#define File_supports_encryption 0x00020000

Macro definition for file properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.