Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!tramp!hartkopf From: hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) Newsgroups: comp.sys.apple Subject: GS/OS calls--how? Message-ID: <12696@boulder.Colorado.EDU> Date: 12 Oct 89 22:55:55 GMT Sender: news@boulder.Colorado.EDU Reply-To: hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) Organization: University of Colorado, Boulder Lines: 32 I'm attempting to learn how to use GS/OS calls, and have come up with some questions. Things don't seem to be working the same way as they did with the ProDOS 16 calls. For example, to get file info on a file, I did something like GSString255 s = {13, "/hd/test.file"}; FileInfoRecGS filerec; filerec.pathname = &s; filerec.pCount = (word) 2; GetFileInfoGS(&filerec); At first I didn't assign anything to the pCount variable and kept getting errors, so after a little experimentation, I found that 2 seems to work. But what is the pCount field of most of the GS/OS records for? When I did the above, I just seemed to get garbage values for the fileType, access, auxType, createDateTime, modDateTime, etc., fields. What am I doing wrong? Do any other fields besides pathname and pCount have to be pre-set before I call GetFileInfoGS()? Thanks very much for any help. Jeff Hartkopf Internet: hartkopf@tramp.Colorado.EDU