How to Get File security attribute in windows
I am using c++ MFC
How can I get the file security attribute in windows, is there any handy开发者_StackOverflow社区 api?
Many thanks!
Could you please check
The Windows Access Control Model Part 1
The Windows Access Control Model: Part 2
Also, take a look here Windows Access Control
Are you looking for something like this?
http://msdn.microsoft.com/en-us/library/aa446639(VS.85).aspx
There's no handy C++ API, at least not in MFC. The CFile model supports any kind of file system: NTFS, but also FAT and CDFS (for CD-ROMs). Hence it generalized a lot. NTFS-specific features such as ACL, ADS etcetera are not supported. You'll still need to use the raw Win32 API for that.
精彩评论