TimeProc

The TimeProc function callback function that is called once upon the expiration of a single event or periodically upon the expiration of periodic events.

void CALLBACK TimeProc(
  UINT uID,      
  UINT uMsg,     
  DWORD dwUser,  
  DWORD dw1,     
  DWORD dw2      
);

TimeProc is a placeholder for the application-defined function name.

Parameters

uID

Identifier of the timer event. This identifier was returned by the timeSetEvent function when the timer event was set up.

uMsg

Reserved; do not use.

dwUser

User instance data supplied to the dwUser parameter of timeSetEvent.

dw1

Reserved; do not use.

dw2

Reserved; do not use.

Return Values

This function does not return a value.

Remarks

Applications should not call any system-defined functions from inside a callback function, except for PostMessage, timeGetSystemTime, timeGetTime, timeSetEvent, timeKillEvent, midiOutShortMsg, midiOutLongMsg, and OutputDebugString.

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.

See Also

Multimedia Timers, Multimedia Timer Functions, timeSetEvent, PostMessage, timeGetSystemTime, timeGetTime, timeKillEvent, midiOutShortMsg, midiOutLongMsg, OutputDebugString

Show: