The NumModes method simply returns the number of display modes supported by the driver. A simple implementation is to return 1.
virtual int NumModes()