timeGetDevCaps

The timeGetDevCaps function queries the timer device to determine its resolution.

MMRESULT timeGetDevCaps(
  LPTIMECAPS ptc,  
  UINT cbtc        
);
 

Parameters

ptc
Address of a TIMECAPS structure. This structure is filled with information about the resolution of the timer device.
cbtc
Size, in bytes, of the TIMECAPS structure.

Return Values

Returns TIMERR_NOERROR if successful or TIMERR_STRUCT if it fails to return the timer device capabilities.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.
  Import Library: Use winmm.lib.

See Also

Multimedia Timers Overview, Multimedia Timer Functions, TIMECAPS