Hello,
i'm looking for a lightweight way to read the windows regitry. I don't know windows, so i don't know how it's done. The goal in simply to check the windows network configuration of a machine from a live-cd, to use the same parameters on the running live-cd. Do i need wine api and dlls to do that, or is this the windows registry readable using lower-level way ? I would prefer not to use wine, then network detection could be done from ramdisk during boot.
Wating for your ligths :-)
Regards.
Camille.
mammique wrote:
Hello,
i'm looking for a lightweight way to read the windows regitry. I don't know windows, so i don't know how it's done. The goal in simply to check the windows network configuration of a machine from a live-cd, to use the same parameters on the running live-cd. Do i need wine api and dlls to do that, or is this the windows registry readable using lower-level way ? I would prefer not to use wine, then network detection could be done from ramdisk during boot.
If you are a programmer, then you can hack up wine/misc/registry.c to do read the registry and output in whatever format you want. Otherwise, you could put together several wine libs, together with regedit (so probably regedit, ntdll, advapi32, kernel32 and maybe user32, gdi32, and ttydrv) and then you can do command line stuff with regedit. You will have to hack around with your wine config file to make it use the windows registry though. In short, what you are trying to do isn't really a part of wine's goals, so you are going to have to do a bit of work to do what you want.
Rob
Robert Shearman a écrit :
mammique wrote:
Hello,
i'm looking for a lightweight way to read the windows regitry. I don't know windows, so i don't know how it's done. The goal in simply to check the windows network configuration of a machine from a live-cd, to use the same parameters on the running live-cd. Do i need wine api and dlls to do that, or is this the windows registry readable using lower-level way ? I would prefer not to use wine, then network detection could be done from ramdisk during boot.
If you are a programmer, then you can hack up wine/misc/registry.c to do read the registry and output in whatever format you want. Otherwise, you could put together several wine libs, together with regedit (so probably regedit, ntdll, advapi32, kernel32 and maybe user32, gdi32, and ttydrv) and then you can do command line stuff with regedit. You will have to hack around with your wine config file to make it use the windows registry though. In short, what you are trying to do isn't really a part of wine's goals, so you are going to have to do a bit of work to do what you want.
Rob
Thank you Rob, i understand this way, it seems quite hard regarding my missing experience in wine me but i'll try to deal with it. BTW you suggest to include regedit (.exe), and other stuff present in windows if i undertand correctly, if i'm right will i be allowed to redistribute it?
Thanks again, regards.
Camille.
On Wed, 24 Nov 2004 09:26:08 +0100, mammique wrote:
Thank you Rob, i understand this way, it seems quite hard regarding my missing experience in wine me but i'll try to deal with it. BTW you suggest to include regedit (.exe), and other stuff present in windows if i undertand correctly, if i'm right will i be allowed to redistribute it?
We ship a regedit clone with Wine but there's no need to use if it you know C. You can write a program that extracts the data directly.
You can make quite a minimal Wine install by shipping only:
wine* [ie wine wine-preloader wine-kthread wine-pthread] libwine libwine_unicode ntdll.dll.so kernel32.dll.so advapi32.dll.so user32.dll.so
If you want to you could drop the advapi32.dll as well and just use the NTDLL APIs for even more space savings.
What you'd then do is write a very small Win32 program to dump the registry keys you want to stdout or do whatever you want with the data from within the program itself and invoke it during the bootup sequence.
Have a temporary WINEPREFIX set up to force Wine to read the registry and away you go. It shouldn't be too hard.
thanks -mike