Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining which volumes are physically read-only?



Dan Smith wrote on Wednesday, March 2, 2005:

>How can I determine, at a file-and-volume-high-level-API-level, which volumes
>are physically read-only (i.e. CD-Rs and DVD-Rs) and thus cannot be written to
>_even by Root_ (or by a process given Root-level privilege by
>AuthorizationExecuteWithPrivileges?)

I would start by doing an FSGetVolumeInfo call, then look in the FSVolumeInfo.flags for kFSVolFlagHardwareLockedBit and kFSVolFlagSoftwareLockedBit.

-- 
James Bucanek <mailto:email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Determining which volumes are physically read-only? (From: "Dan Smith" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.