Setting Owner Information Through The Registry

H

Heather B.

Has anyone else tried to set the owner information through the registry but
then it not show up in Settings, Owner Information? In my program I set the
registry keys Name, E-Mail and Telephone under User\ControlPanel\Owner to
different values and when I look in the registery the new values are there.
However on the main screen where it displays Owner Information the old
values are showing. Then, when I open the Owner Information screen, the old
values are there and when I check the registry the old values have replaced
the new ones, but the new values are only changed when Owner Information is
opened, before that they stay the new values no matter what, even through a
soft reset.

I'm using VS 2005 and Windows Mobile 5. Thanks for any help out there.
 
P

Peter Foot [MVP]

I can confirm that I see this behaviour too. However the reason for this is
probably due to the fact that on Windows Mobile 5.0 for Pocket PC the data
is actually stored in 2 formats. There is a binary value called "Owner"
which contains all the owner details at various offsets and previous
versions of Pocket PC used only this approach. In v5.0 there are also
individual values for the separate fields in order to provide a consistent
model to Smartphone.
It looks therefore as if the Owner settings reads only the binary data and
considers this the "master" copy. Therefore you should look at how to edit
this data from your app - there is a C++ example here which shows how the
single binary block is split into the various fields, you can use
System.Text.Encoding.Unicode to get strings from the binary data and also
the reverse.

Peter
 
H

Heather B.

Could you please point me to that C++ post? I did a search and couldn't
find anything on it.

Thanks,
Heather
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top