On Wed, 2003-02-26 at 13:49, David Masterson wrote:
>>>>> Stephen J Turnbull writes:
>>>>> "David" == David Masterson
<David.Masterson(a)synopsys.com> writes:
David> That should be a given. I don't suppose that (X)Emacs can
David> get information out of the Windows registry... :-\
> Why not? Surely regedit can be coerced into giving information
> noninteractively, if necessary by force-feeding it in a process
> buffer.
Do Windows-only programs behave that way? I don't see anything
in the
regedit help for this.
No, Win32 programs use the registry API which is implemented in one of
the standard DLL's (I don't remember which one).
> There also must be Windows APIs for registry access, it
shouldn't be
> hard for Andy or Ben to hack in a registry lookup function, if they
> aren't already there.
There probably is a Windows API for this, but would using it in a
GPLed program violate some copyright? ;-)
It's just another API that is part of the OS. No different from using
the OS's file access API or process API.
Also, using it might "tie" the compilation of XEmacs to
some Windows
library that may not always be available. There's probably a Cygwin
equivalent, but this too may not always be there.
The registry is so fundamental to the operation of Windows that the DLL
that implements its API should ALWAYS be present. Otherwise, every
other piece of software on the system would not function properly.
Craig