|
WinCE操作系统是如何调用实时时钟的 OEMGetRealTime() 函数获取时间的?
[复制链接]
WinCE启动以后,默认情况下,WinCE会每隔一段时间调用OEMGetRealTime()函数来获得系统的时间
SC_GetRealTime ----调用----> OEMGetRealTime();
SC_GetRealTime 声明在 Win32Methods[], 请问这个 Win32Methods[] 如何被操作系统调用?
///////////////////////////////////////////////////////////////////////////////////////
/////////////////////// 以下参考 ////////////////////////////////////
Kwin32.c (private\winceos\coreos\nk\kernel):static BOOL SC_GetRealTime (LPSYSTEMTIME lpst)
Kwin32.c (private\winceos\coreos\nk\kernel): (PFNVOID)SC_GetRealTime, // 28
const PFNVOID Win32Methods[] = {
(PFNVOID)SC_Nop,
(PFNVOID)SC_NotSupported,
(PFNVOID)SC_CreateAPISet, // 2
.......
(PFNVOID)SC_GetRealTime, // 28
(PFNVOID)SC_SetRealTime, // 29
...........
(PFNVOID)SC_ConnectOsAxsT1, // 196
};
|
|