none
How to know OS version(especail for WM6)

    Question

  • hi guys:
       I know that I can use GetVersionEx function to get OS version. the dwMajorVersion and dwMinorVersion determinate the phone OS version.
    I also know that
  • Windows Mobile 2002–OS Version : 3.0     ( dwMajorVersion = 3   dwMinorVersion = 0)
  • Windows Mobile 2003–OS Version : 4.20    (dwMajorVersion =4   dwMinorVersion = 20)

  • My question is: Can anyone give me a more detailed mapping table?  I tested my code, and got 5,3. And I don't know what it mean. Thank you very much.
Thursday, October 29, 2009 1:40 AM

Answers

  • Versioning:

    Major | Minor | Revision | OS Name
    --------------------------------------------------------------------------------------------------
    3 | x | x | Windows Mobile 2003
    4 | 2 | x | Windows Mobile 2003 SE
    5 | 1 | x | Windows Mobile 5
    5 | 2 | <14000 | Windows Mobile 6
    5 | 2 | <21000 | Windows Mobile 6.1
    5 | 2 | <23000 | Windows Mobile 6.5
    5 | 2 | >=23000 | Windows Mobile 6.5 SE (or 6.5.1)

    Where x means 'any'.

    If You'll find my answer satisfactory or helpful - mark it as answered or vote for it! Thank You.
    "If You think You know better then me, why is Your code not working, then don't waste my time at this forum. Otherwise - do as I'm suggesting."
    • Marked as answer by anyjoy Thursday, October 29, 2009 8:37 AM
    Thursday, October 29, 2009 8:23 AM

All replies

  • All WinMo 5.0 and 6.x devices are based on CE 5.0. Why, exactly, do you need to know more than that?
    Thursday, October 29, 2009 3:10 AM
  • All WinMo 5.0 and 6.x devices are based on CE 5.0. Why, exactly, do you need to know more than that?

    Thank you, Yes ,Because WM have lots of minor versions. I need to know every different Type phone(WM5 WM 6 WM 6.1 WM6.5 ect.).  Can you share more Info? Thank you.
    Thursday, October 29, 2009 3:20 AM
  • Hi anyjoy,
                 
                        is that the value dat u found in dwMajorVersion and dwMinorVersion is 5 and 3...if so then your os version is wince 5.3...hope this resolves your problem.....




    If u find my reply was helpful plz do mark as answer.


    regards
    avinash
          
    Whenever I find the key to success, someone changes the lock.
    Thursday, October 29, 2009 4:00 AM
  • Hi Please refer the threads below for detecting OS version : http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/befa5842-861e-449e-bce7-ddd68a315548/ http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/917b9844-34ec-42b4-8ef9-4f1ef62a05ed/
    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.
    Thursday, October 29, 2009 5:51 AM
  • Hi Please refer the threads below for detecting OS version :

    http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/befa5842-861e-449e-bce7-ddd68a315548/

    http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/917b9844-34ec-42b4-8ef9-4f1ef62a05ed/




    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.
    Thursday, October 29, 2009 5:51 AM
  • Hi anyjoy,
                 
                        is that the value dat u found in dwMajorVersion and dwMinorVersion is 5 and 3...if so then your os version is wince 5.3...hope this resolves your problem.....




    If u find my reply was helpful plz do mark as answer.


    regards
    avinash
          
    Whenever I find the key to success, someone changes the lock.
    hi  AvinashReddy:
    Thank you for your replies , but What i want to know is to determinate the windows mobile version info( windows mobile 5.0,6.0,6.1,not wince info).
    Thursday, October 29, 2009 6:12 AM
  • Hi Anyjoy,


    Check THIS


    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.
    Thursday, October 29, 2009 6:19 AM
  • Hi Please refer the threads below for detecting OS version :

    http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/befa5842-861e-449e-bce7-ddd68a315548/

    http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/917b9844-34ec-42b4-8ef9-4f1ef62a05ed/




    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.

    hi, i have read the first thead before i asked. and this can only give the old version phono info(I can get windows mobile 2002,2003(ppc,sp),but can't get windows mobile 5,6,6.X), the last thread supplies a  c# language solution. I don't know much about C # language. Now i know that "dwMajorVersion and dwMinorVersion is 5 and 2" means the os version is wm6.1,maybe i should find other different os phone, try and get the other answers.   thank you.
    • Edited by anyjoy Thursday, October 29, 2009 6:39 AM
    Thursday, October 29, 2009 6:20 AM
  • Hi anyjoy

    Please the code snipet below :

    Need to include "winbase.h"

    OSVERSIONINFO ObjOSVersionInfo;
    ZeroMemory(&ObjOSVersionInfo, sizeof(OSVERSIONINFO));
    ObjOSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
    GetVersionEx(&ObjOSVersionInfo);

    int MajorVersion = ObjOSVersionInfo.dwMajorVersion;
    int MinorVersion = ObjOSVersionInfo.dwMinorVersion;


    Hope this will help you


    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.
    Thursday, October 29, 2009 6:37 AM
  • Hi anyjoy

    Please the code snipet below :

    Need to include "winbase.h"

    OSVERSIONINFO ObjOSVersionInfo;
    ZeroMemory(&ObjOSVersionInfo, sizeof(OSVERSIONINFO));
    ObjOSVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
    GetVersionEx(&ObjOSVersionInfo);

    int MajorVersion = ObjOSVersionInfo.dwMajorVersion;
    int MinorVersion = ObjOSVersionInfo.dwMinorVersion;


    Hope this will help you


    Thanks, Mohsin Shaikh. If you find my post is helpful for you then mark it as answer.

    Thank you for your code, but  i have used this code before, and I know that 5,2 means wm6.1 . Now i think that maybe (Major,Minor)5,1 means wm6 and 5,0 means wm5. Can anybody try this code and give a verification. Thank you.
    Thursday, October 29, 2009 6:43 AM
  • Versioning:

    Major | Minor | Revision | OS Name
    --------------------------------------------------------------------------------------------------
    3 | x | x | Windows Mobile 2003
    4 | 2 | x | Windows Mobile 2003 SE
    5 | 1 | x | Windows Mobile 5
    5 | 2 | <14000 | Windows Mobile 6
    5 | 2 | <21000 | Windows Mobile 6.1
    5 | 2 | <23000 | Windows Mobile 6.5
    5 | 2 | >=23000 | Windows Mobile 6.5 SE (or 6.5.1)

    Where x means 'any'.

    If You'll find my answer satisfactory or helpful - mark it as answered or vote for it! Thank You.
    "If You think You know better then me, why is Your code not working, then don't waste my time at this forum. Otherwise - do as I'm suggesting."
    • Marked as answer by anyjoy Thursday, October 29, 2009 8:37 AM
    Thursday, October 29, 2009 8:23 AM
  • Versioning:

    Major | Minor | Revision | OS Name
    --------------------------------------------------------------------------------------------------
    3 | x | x | Windows Mobile 2003
    4 | 2 | x | Windows Mobile 2003 SE
    5 | 1 | x | Windows Mobile 5
    5 | 2 | <14000 | Windows Mobile 6
    5 | 2 | <21000 | Windows Mobile 6.1
    5 | 2 | <23000 | Windows Mobile 6.5
    5 | 2 | >=23000 | Windows Mobile 6.5 SE (or 6.5.1)

    Where x means 'any'.

    If You'll find my answer satisfactory or helpful - mark it as answered or vote for it! Thank You.
    "If You think You know better then me, why is Your code not working, then don't waste my time at this forum. Otherwise - do as I'm suggesting."
    Thank you, This is what i want.
    Thursday, October 29, 2009 8:37 AM