OK - so if I'm correct in understanding this, let's say hypothetically, I have
something like so...
HKLM...
something
something else
something else
something else
If I were to use my operation, and export the entire tree, I would get a copy
of the above, but then if someone modified it such that there were four
"something else"s, and I merged my copy back in, the end result would be the
same four "something else"s, while with your method, I would end up with the
original three? Is that right?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Friday, December 05, 2008 5:30 PM
To: Python-Win32 List
Subject: Re: [python-win32] Walking the registry and creating reg files
Dahlstrom, Roger wrote:
> I think my mistake was assuming that reading the values was going to be
> sufficient. For all the purposes I've used, it was. For my edification,
> what's the functional difference? I mean, what I was doing was able to walk
> the registry, extract information, save it for later, modify it, then
> re-insert it in to the registry. What's different with saving and restoring,
> or is it just the neater API?
>
RegSaveKey and RegRestoreKey use a binary format. It's a direct copy of
the database nodes from the registry file itself. RegRestoreKey doesn't
merge the new information with the existing information, like the text
APIs do. Instead, it completely replaces the entire tree being
restored. It's really a backup operation. Thus, these are considered
more dangerous APIs, and that's why these need special privileges.
At least, that's my story, and I'm sticking to it.
--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32
DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the
addressee(s) named herein and
may contain legally privileged and/or confidential information. If you are not
the intended recipient
of this e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and
any attachments thereto, is strictly prohibited. If you have received this in
error, please immediately notify
me and permanently delete the original and any copy of any e-mail and any
printout thereof.
E-mail transmission cannot be guaranteed to be secure or error-free. The sender
therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.
NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Direct Edge ECN LLC may, at its discretion, monitor and review the content of
all e-mail communications.
www.directedge.com
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32