home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cnrexm.zip / FIGURE4.c < prev    next >
Text File  |  1993-04-14  |  420b  |  11 lines

  1. /*  This function filters out either Gas-Powered or Manual vehicles
  2.  *  depending on the given return values in FILTERSTRUCT.
  3.  *  Using the bGasPowered field of VEHICLERECORD to distinguish. */
  4. BOOL  EXPENTRY pfnFilter(PRECORDCORE preccObj, PVOID pStorage)
  5. {
  6.   if (((PVEHICLERECORD)preccObj)->bGasPowered)
  7.     return ((PFILTERSTRUCT)pStorage)->RetVal1;
  8.   else
  9.     return ((PFILTERSTRUCT)pStorage)->RetVal2;
  10. }
  11.