OS的version
GetVersionEx
获取操作系统的版本信息
This function obtains extended information about the version of the OS that is currently running。 CeGetVersionEx (RAPI) is the RAPI version of this function.
它返回了这样一个结构
typedef struct _OSVERSIONINFO{
DWORD dwOSVersionInfoSize;//结构体的大小=0x114
DWORD dwMajorVersion;//os的主版本
DWORD dwMinorVersion;//os的次版本
DWORD dwBuildNumber;//os的build number
DWORD dwPlatformId; //平台标识符,在wince中主要是VER_PLATFORM_WIN32_CE
TCHAR szCSDVersion[128];//Null-terminated string that provides arbitrary additional information about the OS.对于平台的描述字串
} OSVERSIONINFO;