equal
deleted
inserted
replaced
276 return 0; |
276 return 0; |
277 } |
277 } |
278 |
278 |
279 bool qt_wince_is_windows_mobile_65() |
279 bool qt_wince_is_windows_mobile_65() |
280 { |
280 { |
281 return ((qt_wince_get_version() == 52) && (qt_wince_get_build() > 2000)); |
281 const DWORD dwFirstWM65BuildNumber = 21139; |
|
282 OSVERSIONINFO osvi; |
|
283 osvi.dwOSVersionInfoSize = sizeof(osvi); |
|
284 if (!GetVersionEx(&osvi)) |
|
285 return false; |
|
286 return osvi.dwMajorVersion > 5 |
|
287 || (osvi.dwMajorVersion == 5 && (osvi.dwMinorVersion > 2 || |
|
288 (osvi.dwMinorVersion == 2 && osvi.dwBuildNumber >= dwFirstWM65BuildNumber))); |
282 } |
289 } |
283 |
290 |
284 bool qt_wince_is_pocket_pc() { |
291 bool qt_wince_is_pocket_pc() { |
285 return qt_wince_is_platform(QString::fromLatin1("PocketPC")); |
292 return qt_wince_is_platform(QString::fromLatin1("PocketPC")); |
286 } |
293 } |