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
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to