NewGestalt
NewGestalt Add a selector code to those already recognized
#include <GestaltEqu.h> Gestalt Manager
OSErr NewGestalt( selector, selectorFunction );
OSType selector ; Gestalt selector code
ProcPtr selectorFunction ; address of new selector function
returns Error Code; 0=no error
NewGestalt registers a new selector with the Gestalt Manager so it can
later be recognized by calls to the Gestalt function.
selector is the code re presenting the feature being registered (see
Using the Gestalt Manager for a list of selector codes).
selectorFunction is the function Gestalt calls when it receives the selector.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
memFullErr (-108) Ran out of memory
gestaltDupSelectorErr (-5551) Selector already exists
gestaltLocationErr (-5553) Function not in system heap

Notes: A program might wish to use its assigned creator type as its Gestalt
selector code in order to avoid Gestalt namespace collisions.
Under THINK C 5.0 or later, THINK Pascal 4.0 or later and MPW 3.2 or
later, NewGestalt will return an unimpErr on systems which do not
support the Gestalt Manager. If you are programming in assembly
language, it is necessary to check for the existence of the
Gestalt Manager before calling NewGestalt. See
Using the Gestalt Manager for more information on determining if the
Gestalt Manager is supported.