How to work with file attributes
Managing file attributes is programmatically accomplished through the File Server Resource Manager (FSRM) APIs.
- File Server Resource Manager
File Server Resource Manager API extensions added for Windows Server 2008 R2 have been extended in Windows Server 2012.
The FSRM API is designed for use by C, C++, and Visual Basic programmers, and those writing scripts. Familiarity with COM, file systems, and storage is required.
- All Windows Server 2012 user interfaces use the DisplayName attribute in addition to the original Name attribute.Windows Server 2008 R2: Property definitions had only a Name attribute.
- The clear, enumerate, get, and set APIs all use the Name attribute.
Windows Server 2008 R2: The clear API is not available.
- enumerate behavior does not require property definitions. It simply returns all known properties for a given file.
- get attempts to find any property with the given Name.
- To set properties on a file, you must first know which properties are defined. A check is needed for property availability before running a set routine.
For more information about FSRM file attribute management, see the IFsrmPropertyBag interface.
Checking for property availability has not been added to the FSRM samples delivered with Windows Server 2012.
- Dynamic Access Control developer extensibility
- IFsrmPropertyBag interface
- How to enrich audit reporting
Build date: 7/18/2012