IDirectDraw7::GetMonitorFrequency method

Retrieves the frequency of the monitor that the DirectDraw object controls.

Syntax


HRESULT GetMonitorFrequency(
  [out] LPDWORD lpdwFrequency
);

Parameters

lpdwFrequency [out]

A pointer to a variable that receives the monitor frequency, in Hz.

Return value

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

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the GetMonitorFrequency method.

Requirements

Header

Ddraw.h

Library

Ddraw.lib

DLL

Ddraw.dll

See also

IDirectDraw7

 

 

Show: