Important: The information in this document is obsolete and should not be used for new development.
MyMatchAliasFilter
You can pass the address of an alias-matching filter function to theMatchAlias
function.
FUNCTION MyMatchAliasFilter (cpbPtr: CInfoPBPtr; VAR quitFlag: Boolean; myDataPtr: Ptr): Boolean;
cpbPtr
- A pointer to a catalog information parameter block.
quitFlag
- On exit, set this to
TRUE
if you want to terminate the search.myDataPtr
- A pointer to custom data.
DESCRIPTION
Your application-defined filter function is called byMatchAlias
to filter out possible matches. When your function is called, thecpbPtr
parameter points to the catalog information parameter block of the possible match (returned by the File Manager functionPBGetCatInfo
). TheMatchAlias
function sets this parameter toNIL
if it
is calling your function to give it the periodic chance to terminate the search. (Do not
use this pointer without checking forNIL
.) If you want to terminate the search, set thequitFlag
parameter toTRUE
.The
myDataPtr
parameter points to any customized data that your application passed when it calledMatchAlias
. This parameter allows your filter function to access any data that your application has set up on its own.Your function should return
TRUE
to indicate that the possible match is to be discarded, orFALSE
to indicate that the possible match is to be added to the list of possible targets.