Results 1 to 2 of 2

Thread: C/C++ - PocketPC Version

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    C/C++ - PocketPC Version

    I am not sure if this is the same for Windows/Other Operating Systems:

    Code:
    static BOOL IsPocketPC2002(void)
    {
    	//checks for PocketPC availability...
        TCHAR szPlatform[32];
        OSVERSIONINFO osver;
    
        GetVersionEx(&osver);
        if (osver.dwMajorVersion == 3 && SystemParametersInfo(SPI_GETPLATFORMTYPE,
            sizeof(szPlatform), szPlatform, 0) != 0 && lstrcmp(szPlatform, L"PocketPC") == 0)
            return TRUE;
    
        return FALSE;
    }

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The version detection functions are the same for all Windows versions, but of course not for other OSs.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width