| Home
| Previous
| Next
| Up

GA_detectPnPMonitor

Detects a Plug and Play monitor attached to the graphics card

Declaration

int NAPI GA_detectPnPMonitor(
GA_devCtx *dc,
GA_monitor *monitor,
ibool *hasChanged)

Prototype In

snap/graphics.h

Parameters

dc | Device context for the device to do detection for
monitor | Place to store the returned monitor information.
hasChanged | Place to store whether the monitor has changed

Return Value

0 if no DDC monitor, 1 if found, 2 if found without operational limits

Description

This function performs DDC monitor detection for the passed in device context. If the monitor is found, it is returned in the monitor parameter. Note that if we detect an older DDC monitor that does not have operational limits, we use the PNPID from the monitor EDID to search for the correct entry in our monitor database and return those values instead. This allows us to correct for badly formed monitor EDID information present in early monitors (ie: EDID's prior to 1.1).

Note that this function will also return whether the monitor information has changed from the monitor record passed into the function. If the values have changed in anyway the 'changed' parameter will be set to true otherwise it will be set to false.

Note: This function assumes that the system is already in graphics mode. Some device's will not allow PnP monitor detection unless the graphics card is running in hires graphics mode, so you should ensure this is the case before calling this function.

See Also

GA_saveMonitor, GA_getParsedEDID

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com