Important: The information in this document is obsolete and should not be used for new development.
AGOpen
Use theAGOpenfunction to open a guide file in its default active list. You can use this function to open any guide file.
AGErr AGOpen(FSSpec *fileSpec, UInt32 flags, Handle mixinControl, AGRefNum *resultRefNum);
- fileSpec
- A pointer to the file system specification record of the guide file you wish to open. Specify
NILto open the first guide file of type Help that is available to the application.- flags
- Reserved. Specify 0 in this parameter.
- mixinControl
- Reserved. Specify
NILin this parameter.- resultRefNum
- An address through which
AGOpenreturns a reference number for the guide file specified in thefileSpecparameter. You use this reference number to refer to the guide file in other Apple Guide functions.DESCRIPTION
TheAGOpenfunction opens the guide file specified in thefileSpecparameter. It opens the guide file in its default active list. (For a Full Access window, Topics, Index, Look For, or Howdy; for a Single List Access window, Topics or Howdy; for a Simple access window, the first panel of its sequence.) If the application portion of Apple Guide is not in memory,AGOpencallsAGStartto start up Apple Guide before it opens the specified guide file.RESULT CODES
noErr 0 No error kAGErrCannotOpenAliasFile -2954 Unable to open alias kAGErrDatabaseNotAvailable -2956 Guide file is not available kAGErrInsufficientMemory -2962 Not enough memory SEE ALSO
For a description of theAGStartfunction, see page 9-5.