Partager via


Testing an Enhanced OAL

Windows CE loads Filesys.exe before any other applications. To test your OAL, create a test application that replaces Filesys.exe and prints in a loop by incrementing seconds using Sleep and GetTickCount.

To test the OAL

  1. Call the GetTickCount function.

  2. Print the value returned by GetTickCount.

  3. Call the Sleep function to suspend the thread.

    Monitor the duration of the sleep period.

  4. Call GetTickCount again.

  5. Print the value returned by GetTickCount.

  6. Compare the two values returned by GetTickCount.

The second call to GetTickCount should return the amount of time that has elapsed since the previous call to this function. Therefore, the value returned by the second call to GetTickCount should be nonzero and should not match the value returned from the first call to this function.

Note   GetTickCount returns time in the form of milliseconds.

If the value returned by the second call to GetTickCount matches the amount of time that your system was in a suspended state, then you have successfully created a base OAL.

See Also

How to Develop an OEM Adaptation Layer

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.