TestDeviceAttribute
TestDeviceAttribute Check whether or not an attribute is set
#include <Quickdraw.h> Graphics Devices
Boolean TestDeviceAttribute( curDevice, attribute );
GDHandle curDevice ; Handle to a GDevice record structure
short attribute ; gdDevType, ramInit, mainScreen,
allInit, screenDevice, noDriver,
screenActive
returns Is this a monitor, is it set?
TestDeviceAttribute returns an indication as to what kind of gDevice you
have and whether or not it is set.
curDevice is the handle that leads to the device being tested in the gDevice
record.
attribute is one of seven graphics device characteristics that can be on or off.
Returns: a Boolean value indicating the status of a particular
attribute It is one of:
FALSE Not set
TRUE Attribute set

Notes: Scanning through a device list, TestDeviceAttribute tells you if your
device is a display and if it's active. It does not necessarily tell if the
monitor is turned on, or if there is a monitor attached to the card.