Accessing Windows Registry through Linux C/C++ Api

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
vikram ranabhatt

Accessing Windows Registry through Linux C/C++ Api

Post by vikram ranabhatt »

Hi,

I have created multiple Xen Vms using Xen Api.
Host(Dom 0) is Linux and Domain U is windows.
(its not a dual boot in fact all the Os instance one linux and multiple
windows)
I need to access Windows registry right from Linux.Is that is possible
through wine API.

If any other APi that allows windows registry access through Linux suggest
me.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-us ... chment.htm
Phobos
Level 2
Level 2
Posts: 15
Joined: Tue Feb 26, 2008 11:37 pm

Post by Phobos »

I'm just guessing here... but AFAIK, DomU is contained except for the device I/O and other calls to the hypervisor (or in your case since you're using Windows, the hardware extensions and then the hypervisor)

being contained means it can't be accessed directly through Dom0 or other DomUs unless you write an interface that sits in that DomU and talks directly to the hypervisor (and thus, Dom0)

Wine won't help you at all with this... why do you want to access the registry this way?... maybe you can do something else...
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Accessing Windows Registry through Linux C/C++ Api

Post by vitamin »

vikram ranabhatt wrote:Hi,

I have created multiple Xen Vms using Xen Api.
I need to access Windows registry right from Linux.Is that is possible
through wine API?
No Wine can't access virtual machines directly or indirectly.

And even if that would have been possible - Wine does not support windows binary registry format.

The only thing you can do is some sort of IPC with the windows host. But that you don't need Wine for on the *NIX side.
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

http://home.eunet.no/pnordahl/ntpasswd/ is a Linux windows registry and password editor. One also under development with samba.

Messing with a active OS's configuration files in a way the OS does not expect is asking for hell. Better to set up a interface daemon.
Locked