Browse Prior Art Database

Extended Attribute Manipulator

IP.com Disclosure Number: IPCOM000120982D
Original Publication Date: 1991-Jul-01
Included in the Prior Art Database: 2005-Apr-02
Document File: 1 page(s) / 39K

Publishing Venue

IBM

Related People

Weber, OW: AUTHOR

Abstract

This article describes a mechanism which enables OS/2* application programs to easily utilize and maintain Extended Attributes. OS/2 Extended Attributes (EAs) constitute a very convenient method of attaching profile data to a file, but, unfortunately, the DOS APIs for reading and writing EAs are so cumbersome that their use is discouraged. There needs to be an easy way to maintain EAs, and this article describes an API (Application Programming Interface) which will enable the office user to write applications utilizing EAs.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 94% of the total text.

Extended Attribute Manipulator

      This article describes a mechanism which enables OS/2*
application programs to easily utilize and maintain Extended
Attributes. OS/2 Extended Attributes (EAs) constitute a very
convenient method of attaching profile data to a file, but,
unfortunately, the DOS APIs for reading and writing EAs are so
cumbersome that their use is discouraged.  There needs to be an easy
way to maintain EAs, and this article describes an API (Application
Programming Interface) which will enable the office user to write
applications utilizing EAs.

      This solution is to provide a new API, called UseEAs, which
allows the application program to take advantage of both the EA
Mapping APIs and the Library Requester APIs. When the EAs of a file
are needed, UseEAs invokes the EA Mapping APIs required to retrieve
the EAs from the file and store them in Library Requester structures
in memory.  Now, since the fields from the EAs are in memory, UseEAs
invokes the Library Requester Profile APIs to retrieve the data to be
displayed on a window.  Then, after the user enters the data he wants
to change, UseEAs manipulates the structures in memory via more
Library Requester Profile APIs, and then UseEAs invokes the
appropriate EA Mapping APIs to store the data for the EAs back out on
the file in the appropriate format.

      The advantage to this solution is the simplification of EA
processing.  This new API provides an easy and efficient method to
allow...