timeEndPeriod

Syntax

WORD timeEndPeriod(wPeriod)

This function clears a previously set minimum (lowest number of milliseconds) timer resolution that an application or driver is going to use. Call this function immediately after using timer event services.

Parameters

WORD wPeriod

Specifies the minimum timer-event resolution value specified in the previous call to timeBeginPeriod.

Return Value

Returns zero if successful. Returns TIMERR_NOCANDO if the specified wPeriod resolution value is out of range.

Comments

For each call to timeBeginPeriod, you must call timeEndPeriod with a matching wPeriod value. An application or driver can make multiple calls to timeBeginPeriod, as long as each timeBeginPeriod call is matched with a timeEndPeriod call.

See Also

timeBeginPeriod, timeSetEvent