The timeGetDevCaps function queries the timer device to determine its resolution.
MMRESULT timeGetDevCaps( LPTIMECAPS ptc, UINT cbtc );
Pointer to a TIMECAPS structure. This structure is filled with information about the resolution of the timer device.
Size, in bytes, of the TIMECAPS structure.
Returns TIMERR_NOERROR if successful or TIMERR_STRUCT if it fails to return the timer device capabilities.
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Mmsystem.h; include Windows.h.
Library: Use Winmm.lib.