Click or drag to resize

InstrumentSupported

Indicates if the current instrument is supported by the driver.

bool InstrumentSupported() const;
Return Value

Returns true if the current model is supported.

Remarks

In order for a model to be supported, it must be listed in the Models Page of the Driver Settings Editor.

Example

The following example demonstrates use of the InstrumentSupported function.

C++
// CoAcme4321.cpp
HRESULT Acme4321::Configure()
{
  HRESULT hr = S_OK;

  if (!InstrumentSupported())
    return err.ModelNotSupported(GetModel());

  hr = InstrPrintCommand();

  return hr;
}
See Also

Download a complete CHM version of this documentation here.