Writing a Timer Callback Function

The following callback function, OneShotTimer, invalidates the identifier for the single timer event and calls a timer routine to handle the application-specific tasks. For more information, see TimeProc.

  • oid CALLBACK OneShotTimer(UINT wTimerID, UINT msg,

DWORD dwUser, DWORD dw1, DWORD dw2)

{

NPSEQ npSeq; // pointer to sequencer data

npSeq = (NPSEQ)dwUser;
npSeq->wTimerID = 0; // invalidate timer ID (no longer in use)

TimerRoutine(npSeq); // handle tasks

}

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples