DirectX SDK

IDirectDraw7::GetMonitorFrequency

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

HRESULT GetMonitorFrequency(
  LPDWORD lpdwFrequency  
);

Parameters

lpdwFrequency
Address of a variable to be filled with the monitor frequency, in Hz.

Return Values

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_UNSUPPORTED

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in ddraw.h.