How can I Read-Write remote registry
I don't think there is a typelib for you to reference from a VB project _ at least, if there is, I
don't know where it is or how to reference it ;-)...
To start just Dim ... As Object
I don't understand the docs you referred to either, but I didn't do anything special on any of the
machines where I have WMI 1.5 installed in order to use StdRegProv.
StdRegProv (documentation)
http://msdn.microsoft.com/library/psdk/wmisdk/regprovref_6yie.htm
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> I'm sorry Michael. My English is bad.
> I was reading WMI help
> ================
> Registering the Registry Provider
> Because the Registry Provider is not registered automatically with WMI as
> part of the WMI installation process, applications wanting to use it must
> complete the registration. An application registers the Registry Provider by
> creating a Managed Object Format (MOF) file with instances of registration
> classes and then either compiling it as a stand-alone file or including it
> at the top of an application-specific MOF file. The application-specific MOF
> file contains the classes and instances used to access the registry data.
> .....
> ================
> I'm not undestood this help.
> Then, I wrote code in VBA project as you says but I don't seek a library
> where defined StdRegProv.
> Sub mysub()
> Dim reg As ?????? > What library define this type
> ==========================
> Set reg = GetObject("winmgmts://my_computer/root/default:StdRegProv")
> Set reg = Nothing
> End Sub
> Please send me what library reference define this object. Where can I read
> about method Read and Write a registry?
> > > 1. I don't undestant how registrate that WMI provider. Do you send me
> any
> > > templates? :))
> > > 2. But I got StdRegProv. It's OK.
> > I don't understand the question???
> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --
> > Please do not email questions - post them to the newsgroup instead.
> > --