Using a hertz parameter of 0 seems to be completely undocumented so I am unsure how you are misinterpreting it's meaning.
For graphics to match the desktop refresh rate on windows try:
hz=GetDeviceCaps(GetDC(0),VREFRESH)
For graphics to match the desktop refresh rate on windows try:
hz=GetDeviceCaps(GetDC(0),VREFRESH)