Re: Saving Objectstore to a WinCE OS device
- From: Elmo <relmore@xxxxxxxxxxxxxxxxxx>
- Date: 30 Apr 2007 11:01:49 -0700
On Apr 30, 1:46 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Why did you choose MountAsRom?
Paul T.
"Elmo" <relm...@xxxxxxxxxxxxxxxxxx> wrote in message
news:1177954143.714990.176220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 18, 1:46 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
FORGET ABOUT THE FACT THAT YOU'RE USING TRUEFFS. It's just a filesystem.
ANY filesystem can be used. You can try looking upMountAsRootin the
help.
It should indicate that this particular registry key is deprecated, but
should lead you to the replacement.
Paul T.
"Elmo" <relm...@xxxxxxxxxxxxxxxxxx> wrote in message
news:1176915206.523525.113950@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 18, 12:04 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Then the best way to do that is to follow my original suggestion.
That
is,
instead of storing those objects in RAM, youstorethem on "disk", flash
probably. If you have a TrueFFS 'disk' and it's presently mounted as
a
folder in the overall CE filesystem, you can change the settings for
it
in
the registry and mount it as the root and you'll be 80% of the way to
fixing
your problem.
Paul T.
"Elmo" <relm...@xxxxxxxxxxxxxxxxxx> wrote in message
news:1176910241.174168.96620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 17, 5:15 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
I don't recall mentioning TrueFFS, no. However, you can mount a
persistent
filesystem, any persistent filesystem, as the root of the Windows
CE
filesystem so that every folder that you see is persistent, \,
\Windows,
\Temp, etc. In that situation, I don't think that you'd have to
persist
anything but the registry (which you couldstorein the filesystem,
as a
hive, also). What, specifically, are you worried about losing from
the
objectstorewhen power is removed? That will help us assess what
your
options are.
Paul T.
"Elmo" <relm...@xxxxxxxxxxxxxxxxxx> wrote in message
news:1176843701.230834.65850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 17, 11:43 am, "Paul G. Tobey [eMVP]" <p space tobey no
spam
AT
no instrument no spam DOT com> wrote:
I don't think that you want to do this. You'd be a *lot* better
off
to
have
a flash filesystem, mounted as the root of the filesystem, so
that
you
don't
have to worry about files going away when power is removed. The
format
of
theobjectstoreis not documented, probably changes on a daily
basis
and,
other than the standard APIs for things like files, etc. doesn't
provide
a
means to get to the raw data.
Paul T.
"Elmo" <relm...@xxxxxxxxxxxxxxxxxx> wrote in message
news:1176815324.272763.272260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I currently working on a project that have requirements
tosavethe
registry andobjectstoreon system power down. I currently
inplemented a power down interrupt that detects when the power
key
is
pressed by the user and flushes the registry to on board
flash.
Unfortunately I have no idea how to flush
orsavetheobjectstoreto
the onboard flash storage device. I know for flushing the
registry,
I
call the RegFlushKey(HKEY) function a number of times to flush
the
full registry, but I don't know of a way to flush orsavethe
Objectstore. Would anyone have any ideas of where to start or
where
to look to get documentation onsavingtheobjectstorefrom within
the
WinCEOS image.- Hide quoted text -
- Show quoted text -
Paul T. I don't understand. Are you saying that I need a TRUEFFS
(True Flat File System) mounted on the device.- Hide quoted
text -
- Show quoted text -
Paul T. I am new to theobjectstore, so forgive my lack of
knowledge. From some of the information I read and recieved from
other sources, I gathered that the desktop shortcuts, directory
structure, folders, and databases are stored in theobjectstore. I
want to make sure these items are saved during a power ON/OFF cycle.
I thought when you mentioned File system that you was refering to a
TRUEFFS, which is what we have partially integrated into the OS
image.-
Hide quoted text -
- Show quoted text -
I am using Platform Builder forWinCE5.0. Do you guys know of any
documentation or white papers that discuss this process ofsavingthe
ojects to TrueFFS that is mounted as the root of the filesystem
.- Hide quoted text -
- Show quoted text -
I have compiled the TrueFFS lib and integrated it with the OS image.
I have modified the registry to mount the file system as the root.
However, when create a shortcut on the desktop and power off the unit
the shortcut is lossed. The following is what I have included in
the platform.reg file. Is this all I have to do to make the external
file system the root.
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\TRUEFFS_DOC]
"DefaultFileSystem"="FATFS"
"Name"="AMD DiskOnChip M-Systems"
"PartitionDriver"="mspart.dll"
"Folder"="Storage"
"MountAsRoot"=dword:1
"MountAsBootable"=dword:1
"MountAsROM"=dword:1
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\TrueFFS]
"Profile"="TRUEFFS_DOC"
"Dll"="TrueFFS.dll"
"Prefix"="DSK"
"Order"=dword:1
"Ioctl"=dword:4
"FSD" = "FATFS.DLL"
"WindowBase"=dword:a8000000
"FlashSize"=dword:8000000
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; had the endhive here- Hide quoted text -
- Show quoted text -
The information I read on MSDN indicated this, see paragraph below.
Could this (MountAsROM) be the problem?
Including the ROM-Only Component
To implement an installable file system as the root directory, you
must include the ROM-only file system component in the run-time image
instead of the ROM/RAM file system component (SYSGEN_FSROMONLY=1). If
the combined RAM and ROM object store system is present in the run-
time image, then the object store always becomes the root file system.
.
- Follow-Ups:
- Re: Saving Objectstore to a WinCE OS device
- From: Paul G. Tobey [eMVP]
- Re: Saving Objectstore to a WinCE OS device
- References:
- Saving Objectstore to a WinCE OS device
- From: Elmo
- Re: Saving Objectstore to a WinCE OS device
- From: Paul G. Tobey [eMVP]
- Re: Saving Objectstore to a WinCE OS device
- From: Elmo
- Re: Saving Objectstore to a WinCE OS device
- From: Paul G. Tobey [eMVP]
- Re: Saving Objectstore to a WinCE OS device
- From: Elmo
- Re: Saving Objectstore to a WinCE OS device
- From: Paul G. Tobey [eMVP]
- Re: Saving Objectstore to a WinCE OS device
- From: Elmo
- Re: Saving Objectstore to a WinCE OS device
- From: Paul G. Tobey [eMVP]
- Re: Saving Objectstore to a WinCE OS device
- From: Elmo
- Re: Saving Objectstore to a WinCE OS device
- From: Paul G. Tobey [eMVP]
- Saving Objectstore to a WinCE OS device
- Prev by Date: Re: Saving Objectstore to a WinCE OS device
- Next by Date: Re: Saving Objectstore to a WinCE OS device
- Previous by thread: Re: Saving Objectstore to a WinCE OS device
- Next by thread: Re: Saving Objectstore to a WinCE OS device
- Index(es):
Relevant Pages
|