|
Prev: Menubar
Next: IMsgStore::Advise
From: AndyCarr on 7 Feb 2005 08:51 Hi, How can I tell which OS Platform a CE device is using? I currently use CeGetVersionEx() which fills a CEOSVERSIONINFO structure with data including: OS Version but not which platform, so a PocketPC 2003 and a Smartphone 2003 both return the same OS Version = 4! Can I look in devices registry? if yes, where do I need to look. Current method: CEOSVERSIONINFO OSVersionInfo; OSVersionInfo.dwOSVersionInfoSize = sizeof(CEOSVERSIONINFO); CeGetVersionEx(&OSVersionInfo); printf ("BuildNumber: %li \n", OSVersionInfo.dwBuildNumber); printf ("MajorVersion: %li \n", OSVersionInfo.dwMajorVersion); printf ("MinorVersion: %li \n", OSVersionInfo.dwMinorVersion); printf ("PlatformId: %li \n", OSVersionInfo.dwPlatformId); printf("CSDVersion: %s \n", OSVersionInfo.szCSDVersion); -- Thanks Andy C
From: Peter Foot [MVP] on 7 Feb 2005 09:40 You can use SystemParametersInfoand SPI_GETPLATFORMTYPE constant. This will return a string identifier for the platform e.g. PocketPC or SmartPhone Peter -- Peter Foot Windows Embedded MVP www.inthehand.com | www.opennetcf.org "AndyCarr" <acarr_fss(a)yahoo.co.uk> wrote in message news:488A794B-BBC6-409B-AE38-631766B4F9E3(a)microsoft.com... > Hi, > > How can I tell which OS Platform a CE device is using? > > I currently use CeGetVersionEx() which fills a CEOSVERSIONINFO structure > with data including: OS Version but not which platform, so a PocketPC 2003 > and a Smartphone 2003 both return the same OS Version = 4! > > Can I look in devices registry? if yes, where do I need to look. > > Current method: > > CEOSVERSIONINFO OSVersionInfo; > OSVersionInfo.dwOSVersionInfoSize = sizeof(CEOSVERSIONINFO); > CeGetVersionEx(&OSVersionInfo); > > printf ("BuildNumber: %li \n", OSVersionInfo.dwBuildNumber); > printf ("MajorVersion: %li \n", OSVersionInfo.dwMajorVersion); > printf ("MinorVersion: %li \n", OSVersionInfo.dwMinorVersion); > printf ("PlatformId: %li \n", OSVersionInfo.dwPlatformId); > printf("CSDVersion: %s \n", OSVersionInfo.szCSDVersion); > > > -- > Thanks > > Andy C
From: Peter Foot [MVP] on 7 Feb 2005 10:47 The information is stored in the registry by activesync e.g. HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\ DeviceType="PocketPC" So as long as you have a device connected you should be able to query this value for the current device, it should work even if the device is connected as a guest. Peter -- Peter Foot Windows Embedded MVP www.inthehand.com | www.opennetcf.org "AndyCarr" <acarr_fss(a)yahoo.co.uk> wrote in message news:A56B3BDB-157A-43BD-AE77-61AB48AC752D(a)microsoft.com... > Anyway of finding out remotely using RAPI? > > "Peter Foot [MVP]" wrote: > >> You can use SystemParametersInfoand SPI_GETPLATFORMTYPE constant. This >> will >> return a string identifier for the platform e.g. >> >> PocketPC or SmartPhone >> >> Peter >> >> -- >> Peter Foot >> Windows Embedded MVP >> www.inthehand.com | www.opennetcf.org >> >> "AndyCarr" <acarr_fss(a)yahoo.co.uk> wrote in message >> news:488A794B-BBC6-409B-AE38-631766B4F9E3(a)microsoft.com... >> > Hi, >> > >> > How can I tell which OS Platform a CE device is using? >> > >> > I currently use CeGetVersionEx() which fills a CEOSVERSIONINFO >> > structure >> > with data including: OS Version but not which platform, so a PocketPC >> > 2003 >> > and a Smartphone 2003 both return the same OS Version = 4! >> > >> > Can I look in devices registry? if yes, where do I need to look. >> > >> > Current method: >> > >> > CEOSVERSIONINFO OSVersionInfo; >> > OSVersionInfo.dwOSVersionInfoSize = sizeof(CEOSVERSIONINFO); >> > CeGetVersionEx(&OSVersionInfo); >> > >> > printf ("BuildNumber: %li \n", OSVersionInfo.dwBuildNumber); >> > printf ("MajorVersion: %li \n", OSVersionInfo.dwMajorVersion); >> > printf ("MinorVersion: %li \n", OSVersionInfo.dwMinorVersion); >> > printf ("PlatformId: %li \n", OSVersionInfo.dwPlatformId); >> > printf("CSDVersion: %s \n", OSVersionInfo.szCSDVersion); >> > >> > >> > -- >> > Thanks >> > >> > Andy C >> >> >>
From: AndyCarr on 7 Feb 2005 11:19 Thanks! "Peter Foot [MVP]" wrote: > The information is stored in the registry by activesync e.g. > HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\ > DeviceType="PocketPC" > > So as long as you have a device connected you should be able to query this > value for the current device, it should work even if the device is connected > as a guest. > > Peter > > -- > Peter Foot > Windows Embedded MVP > www.inthehand.com | www.opennetcf.org > > > "AndyCarr" <acarr_fss(a)yahoo.co.uk> wrote in message > news:A56B3BDB-157A-43BD-AE77-61AB48AC752D(a)microsoft.com... > > Anyway of finding out remotely using RAPI? > > > > "Peter Foot [MVP]" wrote: > > > >> You can use SystemParametersInfoand SPI_GETPLATFORMTYPE constant. This > >> will > >> return a string identifier for the platform e.g. > >> > >> PocketPC or SmartPhone > >> > >> Peter > >> > >> -- > >> Peter Foot > >> Windows Embedded MVP > >> www.inthehand.com | www.opennetcf.org > >> > >> "AndyCarr" <acarr_fss(a)yahoo.co.uk> wrote in message > >> news:488A794B-BBC6-409B-AE38-631766B4F9E3(a)microsoft.com... > >> > Hi, > >> > > >> > How can I tell which OS Platform a CE device is using? > >> > > >> > I currently use CeGetVersionEx() which fills a CEOSVERSIONINFO > >> > structure > >> > with data including: OS Version but not which platform, so a PocketPC > >> > 2003 > >> > and a Smartphone 2003 both return the same OS Version = 4! > >> > > >> > Can I look in devices registry? if yes, where do I need to look. > >> > > >> > Current method: > >> > > >> > CEOSVERSIONINFO OSVersionInfo; > >> > OSVersionInfo.dwOSVersionInfoSize = sizeof(CEOSVERSIONINFO); > >> > CeGetVersionEx(&OSVersionInfo); > >> > > >> > printf ("BuildNumber: %li \n", OSVersionInfo.dwBuildNumber); > >> > printf ("MajorVersion: %li \n", OSVersionInfo.dwMajorVersion); > >> > printf ("MinorVersion: %li \n", OSVersionInfo.dwMinorVersion); > >> > printf ("PlatformId: %li \n", OSVersionInfo.dwPlatformId); > >> > printf("CSDVersion: %s \n", OSVersionInfo.szCSDVersion); > >> > > >> > > >> > -- > >> > Thanks > >> > > >> > Andy C > >> > >> > >> > > >
From: r_z_aret on 8 Feb 2005 16:23 On Mon, 7 Feb 2005 15:47:45 -0000, "Peter Foot [MVP]" <feedback(a)nospam-inthehand.com> wrote: >The information is stored in the registry by activesync e.g. >HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services\ >DeviceType="PocketPC" > >So as long as you have a device connected you should be able to query this >value for the current device, it should work even if the device is connected >as a guest. I just tested, and confirmed, that it does. The settings also stick around after the device is connected. That might be convenient, but definitely means you can't use existence of these settings to test whether a device is connected. For a partial list of platform strings, see a thread called "CAB Files, WCE 4.x, and non-Pocket PC 2003" this week in this newsgroup. Timely posts for me. I'm just putting together a setup routine. > >Peter ----------------------------------------- To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message). Robert E. Zaret, eMVP PenFact, Inc. 500 Harrison Ave., Suite 3R Boston, MA 02118 www.penfact.com
|
Pages: 1 Prev: Menubar Next: IMsgStore::Advise |