Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

How to work with file attributes

Managing file attributes is programmatically accomplished through the File Server Resource Manager (FSRM) APIs.

What you need to know

Technologies

Prerequisites

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.

Instructions

  • 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.
    • 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.
    Windows Server 2008 R2:  The clear API is not available.

For more information about FSRM file attribute management, see the IFsrmPropertyBag interface.

Remarks

Checking for property availability has not been added to the FSRM samples delivered with Windows Server 2012.

Related topics

Dynamic Access Control developer extensibility
IFsrmPropertyBag interface
How to enrich audit reporting

 

 

Build date: 7/18/2012

Community Additions

Show:
© 2015 Microsoft