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_LOCAL_MACHINE
/ HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it work
well.

As my understanding , RegFlushKey will call WriteRegistrytoOEM.

Could I call "WriteRegistrytoOEM" in oempoweroff() ?
If yes , could you please teach how to call ? (I do NOT understand the
parameter)

BR,
dirwdirw.tw

Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by yflier

yflier
Tue Jul 25 06:34:10 CDT 2006

RegFlushKey will call WriteRegistryToOEM?
For more information, visite
http://msdn.microsoft.com/library/default.asp?url=/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_LOCAL_MACHINE
> / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it work
> well.
>
> As my understanding , RegFlushKey will call WriteRegistrytoOEM.
>
> Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> If yes , could you please teach how to call ? (I do NOT understand the
> parameter)
>
> BR,
> dirwdirw.tw


Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by dirw

dirw
Tue Jul 25 06:45:08 CDT 2006

Dear Sir,

Thanks for your information. ^_^

But can we call WriteRegistryToOEM to save Registry in oempoweroff() ?

BR,
dirwdirw.tw

yflier =E5=AF=AB=E9=81=93=EF=BC=9A

> RegFlushKey will call WriteRegistryToOEM?
> For more information, visite
> http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/wcehar=
dware5/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_LOCAL_MACHINE
> > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it work
> > well.
> >
> > As my understanding , RegFlushKey will call WriteRegistrytoOEM.
> >
> > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > If yes , could you please teach how to call ? (I do NOT understand the
> > parameter)
> >=20
> > BR,
> > dirwdirw.tw


Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by Paul

Paul
Tue Jul 25 11:00:14 CDT 2006

You can't call it directly ever. It's called multiple times to flush the
registry. Call RegFlushKey(), if that's allowed. If it's not allowed,
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 oempoweroff() ?

BR,
dirwdirw.tw

yflier ??:

> RegFlushKey will call WriteRegistryToOEM?
> For more information, visite
> http://msdn.microsoft.com/library/default.asp?url=/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_LOCAL_MACHINE
> > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it work
> > well.
> >
> > As my understanding , RegFlushKey will call WriteRegistrytoOEM.
> >
> > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > If yes , could you please teach how to call ? (I do NOT understand the
> > parameter)
> >
> > BR,
> > dirwdirw.tw



Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by dirw

dirw
Tue Jul 25 22:09:24 CDT 2006

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.platbuilder/br=
owse_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 flush the
> registry. Call RegFlushKey(), if that's allowed. If it's not allowed,
> 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 oempoweroff() ?
>
> BR,
> dirwdirw.tw
>
> yflier ??:
>
> > RegFlushKey will call WriteRegistryToOEM?
> > For more information, visite
> > http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/wceh=
ardware5/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_LOCAL_MACHINE
> > > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it work
> > > well.
> > >
> > > As my understanding , RegFlushKey will call WriteRegistrytoOEM.
> > >
> > > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > > If yes , could you please teach how to call ? (I do NOT understand the
> > > parameter)
> > >
> > > BR,
> > > dirwdirw.tw


Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by yflier

yflier
Tue Jul 25 22:31:08 CDT 2006

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.platbuilder/=
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 flush t=
he
> > registry. Call RegFlushKey(), if that's allowed. If it's not allowed,
> > 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 oempoweroff() ?
> >
> > BR,
> > dirwdirw.tw
> >
> > yflier ??:
> >
> > > RegFlushKey will call WriteRegistryToOEM?
> > > For more information, visite
> > > http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/wc=
ehardware5/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_LOCAL_MACH=
INE
> > > > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it work
> > > > well.
> > > >
> > > > As my understanding , RegFlushKey will call WriteRegistrytoOEM.
> > > >
> > > > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > > > If yes , could you please teach how to call ? (I do NOT understand =
the
> > > > parameter)
> > > >
> > > > BR,
> > > > dirwdirw.tw


Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by dirw

dirw
Wed Jul 26 00:51:37 CDT 2006

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.platbuilde=
r/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 flush=
the
> > > registry. Call RegFlushKey(), if that's allowed. If it's not allowe=
d,
> > > 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 oempoweroff() ?
> > >
> > > 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_LOCAL_MA=
CHINE
> > > > > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it wo=
rk
> > > > > well.
> > > > >
> > > > > As my understanding , RegFlushKey will call WriteRegistrytoOEM.
> > > > >
> > > > > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > > > > If yes , could you please teach how to call ? (I do NOT understan=
d the
> > > > > parameter)
> > > > >
> > > > > BR,
> > > > > dirwdirw.tw


Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by yflier

yflier
Wed Jul 26 01:36:39 CDT 2006

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/wce50conPersistingDat=
awiththeHiveBasedRegistry.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.platbuil=
der/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 flu=
sh the
> > > > registry. Call RegFlushKey(), if that's allowed. If it's not allo=
wed,
> > > > 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 oempoweroff(=
) ?
> > > >
> > > > BR,
> > > > dirwdirw.tw
> > > >
> > > > yflier ??:
> > > >
> > > > > RegFlushKey will call WriteRegistryToOEM?
> > > > > For more information, visite
> > > > > http://msdn.microsoft.com/library/default.asp?url=3D/library/en-u=
s/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_LOCAL_=
MACHINE
> > > > > > / HKEY_CLASSES_ROOT / HKEY_CURRENT_USER / HKEY_USERS , and it =
work
> > > > > > well.
> > > > > >
> > > > > > As my understanding , RegFlushKey will call WriteRegistrytoOEM.
> > > > > >
> > > > > > Could I call "WriteRegistrytoOEM" in oempoweroff() ?
> > > > > > If yes , could you please teach how to call ? (I do NOT underst=
and the
> > > > > > parameter)
> > > > > >
> > > > > > BR,
> > > > > > dirwdirw.tw


Re: How to call WriteRegistrytoOEM() in oempoweroff() ? by dirw

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