* regtool.cc (longopts): Add --wow32 option.
(opts): Add -W option. (usage): Add text for --wow32/-W option. (main): Handle --wow32/-W option. * utils.sgml: Document the new -W option.
This commit is contained in:
parent
6d44157687
commit
3c256e38f9
@ -1,3 +1,11 @@
|
|||||||
|
2006-10-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* regtool.cc (longopts): Add --wow32 option.
|
||||||
|
(opts): Add -W option.
|
||||||
|
(usage): Add text for --wow32/-W option.
|
||||||
|
(main): Handle --wow32/-W option.
|
||||||
|
* utils.sgml: Document the new -W option.
|
||||||
|
|
||||||
2006-10-16 Corinna Vinschen <corinna@vinschen.de>
|
2006-10-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define
|
* regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define
|
||||||
|
@ -48,6 +48,7 @@ static struct option longopts[] =
|
|||||||
{"verbose", no_argument, NULL, 'v'},
|
{"verbose", no_argument, NULL, 'v'},
|
||||||
{"version", no_argument, NULL, 'V'},
|
{"version", no_argument, NULL, 'V'},
|
||||||
{"wow64", no_argument, NULL, 'w'},
|
{"wow64", no_argument, NULL, 'w'},
|
||||||
|
{"wow32", no_argument, NULL, 'W'},
|
||||||
{"key-separator", required_argument, NULL, 'K'},
|
{"key-separator", required_argument, NULL, 'K'},
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
@ -110,6 +111,7 @@ usage (FILE *where = stderr)
|
|||||||
" -q, --quiet no error output, just nonzero return if KEY/VALUE missing\n"
|
" -q, --quiet no error output, just nonzero return if KEY/VALUE missing\n"
|
||||||
" -v, --verbose verbose output, including VALUE contents when applicable\n"
|
" -v, --verbose verbose output, including VALUE contents when applicable\n"
|
||||||
" -w, --wow64 access 64 bit registry view (ignored on 32 bit Windows)\n"
|
" -w, --wow64 access 64 bit registry view (ignored on 32 bit Windows)\n"
|
||||||
|
" -W, --wow32 access 32 bit registry view (ignored on 32 bit Windows)\n"
|
||||||
" -V, --version output version information and exit\n"
|
" -V, --version output version information and exit\n"
|
||||||
"\n");
|
"\n");
|
||||||
if (where == stdout)
|
if (where == stdout)
|
||||||
@ -860,6 +862,9 @@ main (int argc, char **_argv)
|
|||||||
case 'w':
|
case 'w':
|
||||||
wow64 = KEY_WOW64_64KEY;
|
wow64 = KEY_WOW64_64KEY;
|
||||||
break;
|
break;
|
||||||
|
case 'W':
|
||||||
|
wow64 = KEY_WOW64_32KEY;
|
||||||
|
break;
|
||||||
case 'K':
|
case 'K':
|
||||||
key_sep = *optarg;
|
key_sep = *optarg;
|
||||||
break;
|
break;
|
||||||
|
@ -1061,6 +1061,7 @@ Other Options:
|
|||||||
-q, --quiet no error output, just nonzero return if KEY/VALUE missing
|
-q, --quiet no error output, just nonzero return if KEY/VALUE missing
|
||||||
-v, --verbose verbose output, including VALUE contents when applicable
|
-v, --verbose verbose output, including VALUE contents when applicable
|
||||||
-w, --wow64 access 64 bit registry view (ignored on 32 bit Windows)
|
-w, --wow64 access 64 bit registry view (ignored on 32 bit Windows)
|
||||||
|
-W, --wow32 access 32 bit registry view (ignored on 32 bit Windows)
|
||||||
-V, --version output version information and exit
|
-V, --version output version information and exit
|
||||||
|
|
||||||
KEY is in the format [host]\prefix\KEY\KEY\VALUE, where host is optional
|
KEY is in the format [host]\prefix\KEY\KEY\VALUE, where host is optional
|
||||||
@ -1096,6 +1097,11 @@ the <literal>-w</literal> the 64 bit view is used and
|
|||||||
This option is simply ignored when running on 32 bit Windows versions.
|
This option is simply ignored when running on 32 bit Windows versions.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>The <literal>-W</literal> option allows to access the 32 bit view
|
||||||
|
on the registry. The purpose of this option is mainly symmetry. It
|
||||||
|
allows to create OS agnostic scripts which would also work in a hypothetic
|
||||||
|
64 bit version of Cygwin.</para>
|
||||||
|
|
||||||
<para>You must provide <command>regtool</command> with an
|
<para>You must provide <command>regtool</command> with an
|
||||||
<emphasis>action</emphasis> following options (if any). Currently,
|
<emphasis>action</emphasis> following options (if any). Currently,
|
||||||
the action must be <literal>add</literal>, <literal>set</literal>,
|
the action must be <literal>add</literal>, <literal>set</literal>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user