Regfio.c as a registry tool

Gerald (Jerry) Carter jerry at samba.org
Mon Jun 12 20:50:19 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt Kubilus wrote:

> Looking at building a tool based off of regfio.c for 
> registry manipulation.  It looks like this can
> read and write registry files. But can it:
> 
> * Delete registry keys/values
> * Expand the size of a registry

Yeah.  Should be fine.   I'd have to go back and look.
I know reading in a regf file and writing out a new
file will work.  I don't believe it will write a file
in place. That can be done but requires updating offsets
in the khey structure and there are rules IIRC about
values crossing an hbin boundary.

The best example code is in utils/net+rpc_registry.c
Look at the dump subcommand.  And profiles.c as well.

Jelmer re-implemented teh parsing routines using
pidl in the SAMBA_4_0 branch and he's already mentioned
some of the tools.






cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEjdOLIR7qMdg1EfYRAkj8AKCFXPuIHDjLETjZppOQtoXK2DwCvwCfQrJh
XzAojbnvUKtJJ9LWgSXZBcI=
=J4qs
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list