Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

timeGetDevCaps function

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

Syntax


MMRESULT timeGetDevCaps(
   LPTIMECAPS ptc,
   UINT       cbtc
);

Parameters

ptc

A pointer to a TIMECAPS structure. This structure is filled with information about the resolution of the timer device.

cbtc

The size, in bytes, of the TIMECAPS structure.

Return value

Returns MMSYSERR_NOERROR if successful or an error code otherwise. Possible error codes include the following.

Return codeDescription
MMSYSERR_ERROR

General error code.

TIMERR_NOCANDO

The ptc parameter is NULL, or the cbtc parameter is invalid, or some other error occurred.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

TimeAPI.h (include Windows.h);
Mmsystem.h on Windows Server 2008 R2, Windows 7, Windows 7, Windows Server 2008 and Windows Vista (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

Multimedia Timers
Multimedia Timer Functions
Timer Resolution

 

 

Show: