ADC Home > Reference Library > Technical Q&As > Legacy Documents > Networking >
Legacy Document
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:
Technical Q&A NW16
Getting Records From the OCE Catalog Manager
|
Q: When we use the DirFindRecordGet function, we get the message
kOCEInvalidCommand (-1501) . Is there another way to get all records from a
given catalog?
A: The catalog you are attempting to get record information about does not
support the DirFindRecordGet function (few out there actually do). To check
whether or not a particular catalog supports this function, you need to first
call DirGetDirectoryInfo() and check the features flags that are returned.
Check the kSupportsFindRecordBit (see
Inside Macintosh: AOCE Application Interface, p. 8-31) to see if this call is supported. If it is not
supported, you'll have to use DirEnumerateGet instead to get all the records
from a catalog. You also might want to look at the "DTS Catalog Peek" sample code on the Mac OS SDK.
|
[Sep 01 1995]