FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

SYSTEM

Check if At Ease is installed


How do I make a gestalt call from FB to check if At Ease is Installed?

<< TECH NOTE
To determine if At Ease has been installed on the user's system, a Gestalt call can be made in the form:
#define kAtEaseGestalt 'mfdr'
err = Gestalt(kAtEaseGestalt,&aeGestaltInfoHdl);
If an error occurs, you can assume that At Ease was not installed. If the call completes OK, the Gestalt call will return a handle to some useful information. Details on the returned information are described later.
The At Ease gestalt signature is 'mfdr'. The gestalt information record for At Ease is shown below:
typedef struct { /* gestalt info structure */
long giDocsDirID; /* directory id of user's documents folder */
Str31 giUserName; /* name of current user */
} GestaltRec, *GestaltRecPtr, **GestaltRecHand; >>


giDocsDirID: This field is also only used if the user's documents are not located on a floppy. Otherwise, this field contains the dirID of the user's documents folder.

Martin Fitzgibbons