Microsoft DirectX 9.0

IDirectDraw::GetMonitorFrequency

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

Syntax

HRESULT GetMonitorFrequency(
  LPDWORD lpdwFrequency
  );

Parameters

lpdwFrequency

Points to the DWORD that will be filled in with the monitor frequency, in 100-Hz units. (For example, 60 Hz is returned as 6000.)

Return Values

Value Description
DD_OK The method succeeded.
DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
DDERR_INVALIDPARAMS One or more of the input parameters is invalid.
DDERR_UNSUPPORTED Action not supported.

See Also