A primary category has yet to be selected for this document.

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Hidden Volumes in HFS


Q: Is there a preferred way to define "hidden" volumes in HFS (i.e., the way AOCE declares "Mail Enclosures", etc.)?

A: AOCE's Mail Enclosures volume is hidden because its root directory has the kIsInvisible Finder flag set. You can use the SetIsInvisible routine in the MoreFiles DTS sample code to make the root directory of a volume invisible, so the next time the volume is mounted, the Finder doesn't show that volume. There is no way to force the Finder to notice the change and make the volume invisible on the fly.

Note that the Finder did not support invisible volumes until System 7 Pro (System 7.1.1). Therefore, with System 7.1 and earlier versions, you can't make volumes invisible. The SetIsInvisible function can be found in the MoreFilesExtras.c file at the following path on the Developer CD:

Dev.CD Feb 95:Sample Code:MoreFiles 1.2.1:MoreFilesExtras.c

[May 01 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.