Called during device initialization, this code checks the device for some minimum set of capabilities, and rejects those that don't pass by returning false.
public bool IsDeviceAcceptable( Capscaps, FormatadapterFormat, FormatbackBufferFormat, boolwindowed );