windows registry

Werner Koch wk@gnupg.org
Tue, 23 Jan 2001 14:00:14 +0100


On Tue, 23 Jan 2001, Jan-Oliver Wagner wrote:


> just checked in some stuff that reads registry for path
> to gnupg data and for the gpg program itself (if compiled
Good idea.
> in "CreateProcess: ...", but "args" still contains
> a complete command line (including the command itself=gpg).
CreatePocess takes as first arg the path to the executable. and as second arg the commandline. This commandline is what you see in parsed form in main (int argc, char**argv). argv[0] is by convention the name of the program but it is not used to start create the process. This is similar to Unix, where you don't have to parse a commandline to build main's argv but just pass it to exec(2)
> I removed it, but still gpg can not be executed:
> *** CreateProcess failed: ec=3
That's "path not found" Don't know whether this helps. Werner -- Werner Koch <wk@gnupg.org> GNU Privacy Guard (http://www.gnupg.org) Free Software Foundation Europe (http://www.fsfeurope.org) [Please see X-* mail header for OpenPGP key info]