dirw
Wed Jul 26 03:57:49 CDT 2006
Dear yflier,
Thnaks for your great help. ~~>_<~~
so maybe I should change the storgae location from "My device" to
"Permanent Storage".
Then system will have only one system.hv in "Permanent Storage".
And system will read "Permanent Storage\system.hv" for Registry.
Thanks for your great help.
BR,
dirwdirw.tw
yflier =E5=AF=AB=E9=81=93=EF=BC=9A
> Hi, dirw:
> About your questions, I think that:
> 1. You can use RegSaveKey() to save these .hv files into other file
> system folder.
> 2. Your system will use "MyDevice\Document and Settings\system.hv"
> rather than "Permanent Storage\system.hv" when bootup, it's decided by
> your Hive-Based Registry config. Using RegSaveKey(), we only get a
> backup of .hv file and store it into other position.
> 3. If your want to use "Permanent Storage\system.hv" to replace, you
> should use RegReplaceKey() for system.hv, then reboot your system. Or
> use "Permanent Storage\system.hv" to replace "MyDevice\Document and
> Settings\system.hv" before filesys.exe start the registry(I think this
> method is difficult and unsafe).
> About more information, please see
>
http://msdn.microsoft.com/library/en-us/wcedata5/html/wce50conPersistingD=
atawiththeHiveBasedRegistry.asp?frame=3Dtrue
>
> dirw wrote:
> > Dear yflier,
> >
> > Thanks for your great help. ^_^
> >
> > I have another question.
> >
> > I use PSM 3.8 to create a "Permanent Storage" Folder.
> > I also enable Hive-Based Registry in system . (Locate in "My
> > Device\Document and Settings\system.hv")
> >
> > I try to write a application to save the "system.hv" and "user.hv" into
> > "Permanent Storage" Folder.
> > Can I call "RegSaveKey()" to save them into "Permanent Storage" Folder
> > ?
> >
> > If I already save them into "Permanent Storage" Folder , then I power
> > down the system and bootup system.
> >
> > Is it possible to read "Permanent Storage\system.hv" and "Permanent
> > Storage\user.hv" when system bootup ?
> >
> > If yes , could you please teach me how to implement ?
> >
> > Thanks for your great help.
> >
> > BR,
> > dirwdirw.tw
> >
> >
> >
> >
> > yflier =E5=AF=AB=E9=81=93=EF=BC=9A
> >
> > > I have replied it with my limited knowledge.
> > >
> > > dirw wrote:
> > > > Dear Sir,
> > > >
> > > > If I can NOT call WriteRegistrytoOEM in owmpoweroff();
> > > > How can I save Registry before system go into suspend ?
> > > >
> > > > I also post a question in new group.
> > > >
http://groups.google.com.tw/group/microsoft.public.windowsce.platbu=
ilder/browse_thread/thread/bbeb5be755c02f66
> > > >
> > > > BR,
> > > > dirwdirw.tw
> > > >
> > > > Paul G. Tobey [eMVP] =E5=AF=AB=E9=81=93=EF=BC=9A
> > > >
> > > > > You can't call it directly ever. It's called multiple times to f=
lush the
> > > > > registry. Call RegFlushKey(), if that's allowed. If it's not al=
lowed,
> > > > > there's nothing you can do to make it allowed that I can think of.
> > > > >
> > > > > Paul T.
> > > > >
> > > > > "dirw" <dirwdirw.tw@yahoo.com.tw> wrote in message
> > > > > news:1153827908.164897.293190@m73g2000cwd.googlegroups.com...
> > > > > Dear Sir,
> > > > >
> > > > > Thanks for your information. ^_^
> > > > >
> > > > > But can we call WriteRegistryToOEM to save Registry in oempowerof=
f() ?
> > > > >
> > > > > BR,
> > > > > dirwdirw.tw
> > > > >
> > > > > yflier ??:
> > > > >
> > > > > > RegFlushKey will call WriteRegistryToOEM?
> > > > > > For more information, visite
> > > > > >
http://msdn.microsoft.com/library/default.asp?url=3D/library/en=
-us/wcehardware5/html/wce50lrfWriteRegistryToOEM.asp
> > > > > >
> > > > > > dirw wrote:
> > > > > > > Dear Sir,
> > > > > > >
> > > > > > > I use PXA27X , PSM 3.8 and WINCE 5.0 to develop my project.
> > > > > > >
> > > > > > > Because I want to save registry before system go into suspend.
> > > > > > >
> > > > > > > I write a application to call "RegFlushKey" to saev HKEY_LOCA=
L_MACHINE
> > > > > > > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and i=
t work
> > > > > > > well.
> > > > > > >
> > > > > > > As my understanding , RegFlushKey will call WriteRegistrytoOE=
M=2E
> > > > > > >
> > > > > > > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > > > > > > If yes , could you please teach how to call ? (I do NOT under=
stand the
> > > > > > > parameter)
> > > > > > >
> > > > > > > BR,
> > > > > > > dirwdirw.tw