Platform SDK: DirectX

DirectDraw7.GetMonitorFrequency

The DirectDraw7.GetMonitorFrequency method retrieves the frequency of the monitor being driven by the DirectDraw object.

object.GetMonitorFrequency() As Long

Parameters

object
Object expression that resolves to a DirectDraw7 object.

Return Values

If the method succeeds, it returns the monitor frequency, in Hz.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_UNSUPPORTED