Accessing Windows registry from samba wmic utility

Jelmer Vernooij jelmer at samba.org
Wed Jul 25 14:12:12 MDT 2012


Hi,

On Wed, Jul 25, 2012 at 09:00:17PM +0300, Andrey Kondakov wrote:
> I am trying to add Windows registry support to wmic utility.
> My code intends to access remote host and get some registry values or
> enumerate keys.
> Everything goes well until I try to fetch ReturnValue and actual query data
> from *out* object.
> Namely, ReturnValue should be 0 if the data returns but I get 6 instead
> that supposedly addresses some HANDLE problem.

> My flow is similar to Create process query which works perfect. The code
> goes below.

> I wonder if somebody can give me a hint how to get it working. Even some
> relevant suggestion may help.
Is there a particular reason you're using the WMIC interface rather
than just the plain winreg DCE/RPC interface, which is known to work
and included in Samba?

Cheers,

Jelmer


More information about the samba-technical mailing list