home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR24
/
BYEXAMPL.ZIP
/
FIGURE4.C
< prev
next >
Wrap
Text File
|
1993-04-14
|
420b
|
11 lines
/* This function filters out either Gas-Powered or Manual vehicles
* depending on the given return values in FILTERSTRUCT.
* Using the bGasPowered field of VEHICLERECORD to distinguish. */
BOOL EXPENTRY pfnFilter(PRECORDCORE preccObj, PVOID pStorage)
{
if (((PVEHICLERECORD)preccObj)->bGasPowered)
return ((PFILTERSTRUCT)pStorage)->RetVal1;
else
return ((PFILTERSTRUCT)pStorage)->RetVal2;
}