
Signature
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com
Hi Peter,
> >> once you have an active connection you can query some device properties
> >> from
> >> the desktop registry:-
> >> HKEY_CURRENT_USER\Software\Microsoft\Windows CE Services
> >> Value named DeviceType contains the platform name e.g. "PocketPC" or
> >> "Smartphone"
I've been successfully using this registry value for years, and it's all
worked fine.. until the monster called Vista came along.
If I have code to check this value in my application, but the user who's
running it doesn't have Admin rights (as is quite possible), then I can't
query this key, it fails.
I'm deliberately trying to open the registry key with just
"KEY_QUERY_VALUE" access, so Vista doesn't think I'm a nasty
process attempting to corrupt Microsoft's own registry settings, but
this just doesn't work for non-Admin users.
If a Vista admin user runs it, or if the user "upgrades" to Windows XP,
then it works a treat again.
Oh, and yes, I do have a Manifest file for my app, but I don't want to
add "requireAdministrator" as a requestedPrivilege, as I want to keep
the security settings as low as possible.
Any suggestions to make this work ?
Mike
> Both are accessible on the device with SystemParametersInfo API with
> constants SPI_GETOEMINFO and SPI_GETPLATFORMTYPE
[quoted text clipped - 32 lines]
> >> > via
> >> > RAPI ?