When you compile and build your application, you will find that some of the data structures used by the RAS functions have extra data fields included or excluded, based on the value of the define WINVER. However, the Windows CE SDK does not define WINVER, so this information does not apply to Windows CE. RAS data structures also have a dwSize field that you must set to the byte size of the RAS structure you are using. This affects the behavior of the RAS functions that use these structures because they are targeted for a specific platform. The WINVER rules apply to the Windows 95, Windows 98, Windows 2000, and Windows NT platforms.
RAS does not lend itself well to having a single executable that can run on all platforms. Through careful programming, it is possible to support all platforms (except Windows CE, of course) using a single executable. However, we highly recommend targeting a specific platform when building your RAS applications.