54 | DGetRefreshRate
DGetRefreshRate
(Obsolete in multi-monitor mode)
Purpose Use
Syntax
DWORD DGetRefreshRate (hdc, lpwRefreshRate)
Return value
DWORD –
otherwise, operating system error code.
Example This example returns the refresh rate of the screen.
#include <mdpcint.h>
{
HDC
UWORD
DWORD
dwRetCode = DGetRefreshRate (hdc, &wRefreshRate);
return dwRetCode;
}
See also
DGetNumScreens, DGetScreenDimensions,
DGetScreenPlacement
DGetRefreshRate
Parameter Type
HDC
UWORD FAR *
zero (0) if function completed successfully;
hdc;
wRefreshRate;
dwRetCode;
to return the screen's refresh rate.
Name
hdc
wRefreshRate
Description
Handle to the display-
device context.
Pointer to
UWORD.
filled in with the refresh
rate in Hertz * 100.
It is