timeEndPeriod

The timeEndPeriod function clears a previously set minimum timer resolution.

MMRESULT timeEndPeriod(
  UINT uPeriod  
);

Parameters

uPeriod

Minimum timer resolution specified in the previous call to the timeBeginPeriod function.

Return Values

Returns TIMERR_NOERROR if successful or TIMERR_NOCANDO if the resolution specified in uPeriod is out of range.

Remarks

Call this function immediately after you are finished using timer services.

You must match each call to timeBeginPeriod with a call to timeEndPeriod, specifying the same minimum resolution in both calls. An application can make multiple timeBeginPeriod calls as long as each call is matched with a call to timeEndPeriod.

Requirements

  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.

See Also

Multimedia Timers, Multimedia Timer Functions, timeBeginPeriod

Show: