Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!snorkelwacker!apple!rutgers!uwvax!veronica.cs.wisc.edu!elliott From: elliott@veronica.cs.wisc.edu (James Elliott) Newsgroups: comp.sys.mac.programmer Subject: Okay, so how do I use PBGetCatInfo in Think C? Keywords: Secret Think C Glue? :^) Message-ID: <11331@spool.cs.wisc.edu> Date: 23 Sep 90 06:26:53 GMT Sender: news@spool.cs.wisc.edu Organization: U of Wisconsin CS Dept Lines: 28 Okay. I seem to be missing something. Inside Mac volume IV describes all these fancy new functions for interacting with the file manager under HFS. Unfortunately, they all involve these ghastly huge parameter blocks that I'd rather not have to learn to deal with, especially when I want to do something relatively simple. Apparently I'm not the only person who feels that way, since it seems that Think C has glue to call at least some of these routines in a more simple way. For example, the routine PBHGetFInfo seems to be callable as just HGetFInfo, and instead of passing a HParmBlkPtr and a Boolean, one passes in a volNum, a dirID and a name, and gets back an info record. Very nice. How do I know that this works? I saw them do it in the Think Class Library code and copied it. It doesn't seem to be documented anywhere! Don't I know where to look? Or is there some little manual I'm missing? What I presently want to know is whether there is similar glue for PBGetCatInfo, and what its parameters are. Is there any way to find out? Is there a general solution to my lack of information about this set of routines? And is there any way to get a list of the function prototypes that are defined in Think C? (In increasing order of generality, and perhaps complexity...) -- Jim Elliott "Like a bridge he'll come between us, not a wall" elliott@veronica.cs.wisc.edu