Important: The information in this document is obsolete and should not be used for new development.
Getting the Available Graphics Devices
To gain access to theGDevice
record for a video device--for example, to determine the size and pixel depth of its attached screen--your application needs to get a handle to that record.Your application can use the
GetDeviceList
function to obtain a handle to the firstGDevice
record in the device list, theGetGDevice
function to obtain a handle to theGDevice
record for the current device, theGetMainDevice
function to obtain a handle to theGDevice
record for the main screen, and theGetMaxDevice
function to obtain a handle to theGDevice
record for the video device with the greatest pixel depth.All existing
GDevice
records are linked together in the device list. After using one of these functions to obtain a handle to one of theGDevice
records in the device list, your application can use theGetNextDevice
function to obtain a handle to the nextGDevice
record in the list.Two related functions,
GetGWorld
andGetGWorldDevice
, also allow you to obtain handles toGDevice
records. To get theGDevice
record for the current device, you can use theGetGWorld
function. To get a handle to theGDevice
record for a particular offscreen graphics world, you can use theGetGWorldDevice
function. These two functions are described in the next chapter, "Offscreen Graphics Worlds."
Subtopics
- GetGDevice
- GetDeviceList
- GetMainDevice
- GetMaxDevice
- GetNextDevice