Timer Events Database (Windows Embedded CE 6.0)
1/6/2010
The notification subsystem uses the kernel alarm to trigger time-based events. You can set the kernel alarm by calling the OEMSetAlarmTime function. Windows CE 3.0 provides a hard-coded timer resolution of 10 seconds for the kernel alarm. This hard-coded timer resolution prevents a CPU that has better resolution from taking advantage of that better resolution. Windows Embedded CE allows you to specify the timer resolution with a new kernel variable, dwNKAlarmResolutionMSec. You can use this variable to specify a resolution for the timer as short as 1 second. The default value of dwNKAlarmResolutionMSec is 10 seconds. To override this value, declare dwNKAlarmResolutionMSec in your OEM adaptation layer (OAL) and set the value of this variable to the desired resolution in your implementation of the OEMInit function. For more information about the OAL, see OEM Adaptation Layer. For more information about implementing OEMInit, see Implementing the OEMInit Function.