On Mon, Jun 02, 2003 at 09:32:02PM -0400, Richard Coutts wrote:
> I'm wondering if I can use VFSFileGet(Set)Attributes to set my own custom
> flag for a file. The attributes is a 32-bit number, but the OS only seems
> to be using the lowest 8-bits or so and the rest are undefined (according to
> the "File and Directory Attributes" list).
(Unlike Jeff, let's look at your actual question :-))
The interesting question is not so much whether VFSFileSetAttributes()
will allow you to specify random unassigned bits out of those 32 bits,
but whether the particular physical file system underneath the VFS will
remember them.
The answer for the file system you are no doubt interested in, namely
FAT, is of course no. As noted in the documentation, there's not even
a guarantee that any particular file system will even understand and
remember all of the attributes that *are* defined.
You might want to try your idea on a debug ROM (possibly even before
posting :-)):
Invalid attributes passed to VFSFileAttributesSet
...which is a little bit surprising (what if a later OS revision defines
more bits?).
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/