You specify a device (for example, when creating a new draw context with the QADrawContextNew function) by filling in a device structure, defined by the TQADevice data type.
typedef struct TQADevice {
TQADeviceType deviceType;
TQAPlatformDevice device;
} TQADevice;