[Patch] regtool: Add load/unload commands and --binary option

Dave Korn dave.korn@artimi.com
Fri Mar 3 13:12:00 GMT 2006

On 03 March 2006 09:46, Corinna Vinschen wrote:

> Btw., since you seem to be interested in hacking the registry...  would
> you also be interested to introduce registry write access below
> /proc/registry inside of the Cygwin DLL?  That would be extra cool.
> I'm not quite sure how to handle the mapping from file types to
> registry key types, but there might be some simple way which I'm just
> too blind to see.

  Hey, how about using pseudo filename-extensions on the pseudo-files that
represent registry keys?


$  echo "Foo" >/proc/registry/HKEY_CURRENT_USER/Software/App/Key/ValueName.sz
creates /proc/registry/HKEY_CURRENT_USER/Software/App/Key/ValueName, type
REG_SZ, content "Foo<NUL>"

$  echo "%WINDIR%"
creates /proc/registry/HKEY_CURRENT_USER/Software/App/Key/ValueName as

$  echo "23"
$  echo "0x17"

$  dd bs=1024 count=3 if=/dev/random

$  touch /proc/registry/HKEY_CURRENT_USER/Software/App/Key/ValueName.none

etc etc ?  (We might even want a $CYGWIN option to make the extension show up
in dir listings, but it wouldn't be backwardly-compatible to do so in

  Hmm, and how about for MULTI_SZ taking account of the open mode?

$ echo "String1"
$ echo "String2"
$ echo "String3"
$ echo "String4"
$ od -c < /proc/registry/HKEY_CURRENT_USER/Software/App/Key/ValueName.msz

Can't think of a witty .sigline today....

More information about the Cygwin-patches mailing list