Hi,
I am looking into WriteRegistryToOEM/ReadRegistryFromOEM to implement saving
of my touch calibration (as everyone is doing all the time)
The documentation confuses me a bit :
"Only a fully saved registry can be restored; attempting to restore a
partial registry produces unpredictable results"
I was planning to only save/restore the branch containing the touch
callibration.
In the simplest form, I would ignore the data parameters passed to the write
function, and just write 1 specific branch or value. Also when reading, I
want to use the read-call only as a trigger to read in that specific branch.
Will this work ?
Is the (RAM BASED) registry already present when the first read call comes
at boot-time ? Can I use regular registry-functions to get the data I need ?
(ignoring the data passed).
From the description it looks like the read is called very early on in the
initialisation process. So I guess my harddisk is not mounted yet. Can I
still use this mechanism when the drive is mounted, or will I not receive a
call to read anymore ?
In that case I would need to read in the data myself at some point (after HD
mount, and before touch-driver-loading), and just use the
WriteRegistryFromOem function, to update the datafile when the calibration
application has run, right ?
If there is a way to re-init the touch driver, I could keep the whole
process of saving and restoring OS-independent. Can I do this using
ActivateDeviceEx() and its counterpart ? (or just launch the touch driver
from the reg-read-app I will create)
I donot want to waste time figuring all this out, escpecially since it has
been done a zillion times. So if you've made a solution, please let me know.
Greetings,
Rob.