Determing if the app is runnig on a Desktop-PC or on a Handheld

Discussion in 'Questions (Windows Mobile)' started by moster67, Oct 23, 2008.

  1. moster67

    moster67 Expert Licensed User


    Is there any way I can determine from within my code if the application that is being executed is running on a Desktop-PC or on a handheld (PPC)?

    For instance:

    If desktopPC=true then
    do this code.....
    do this code....
    End If

    Maybe I could check if some specific file for Windows Mobile is present or maybe I can check system-information to get the OS running...

    Any ideas?


  2. agraham

    agraham Expert Licensed User

    There's a built-in constant cPPC, see Help->Main Help->Constants->General
  3. moster67

    moster67 Expert Licensed User

    Thank you Agraham - I missed that one....

  4. giannimaione

    giannimaione Well-Known Member Licensed User

    Ciao Moster67,

    ti perdi in un bicchiere d'acqua: :)

    cPPC - True if the application is running on a Device and false if it is running on the Desktop.
  5. moster67

    moster67 Expert Licensed User

    Hai ragione :) - mi sembrava stupida la domanda ma onestamente non avevo visto la risposta nel help

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice