Re: [python-win32] how to get the interface of an COM object?

2006-11-13 Thread Thomas Heller
Bruce Who schrieb: > I googled the web and find some old posts in this maillist, it seems > that only interfaces inherit from IDispatch can be used by pythonCOM, > and interfaces here inherits from IUnknown. But I just need to use > these interfaces, so could anybody tell me how to do it? > > And

Re: [python-win32] COM interface specs

2006-11-13 Thread Michel Claveau
Hi! Just a little way: http://wikipython.flibuste.net/ see the section "CodeWindows" This wiki is in french ; but the (exemples of) code is in python. @-salutations -- Michel Claveau ___ Python-win32 mailing list Python-win32@python.org http://m

[python-win32] COM interface specs

2006-11-13 Thread Rikard Bosnjakovic
Greetings I'm a Python-programmer since 6 years, and now is the first time I'm about to program under the Windows environment. What I am about to do now is to play around with COM. I read a very brief tutor (the one found at http://www.oreilly.com/catalog/python2/chapter/ch15.html#21248) and in t

Re: [python-win32] how to get the interface of an COM object?

2006-11-13 Thread Mark Hammond
> I googled the web and find some old posts in this maillist, it seems > that only interfaces inherit from IDispatch can be used by pythonCOM, > and interfaces here inherits from IUnknown. But I just need to use > these interfaces, so could anybody tell me how to do it? I'm afraid that what you go

[python-win32] how to get the interface of an COM object?

2006-11-13 Thread Bruce Who
Hi, all I am trying to use win32com to interact with a proprietary COM object. progID of the coclass is "SomeObj2.SomeObj.1", I can create the coclass but am not able to access other interfaces via win32com.client.CastTo(). For example ISomeInterface is one of this COM object's interfaces. But no

Re: [python-win32] Win32_GroupUser

2006-11-13 Thread James Matthews
There should be a central site with all this information!On 11/13/06, Tim Golden <[EMAIL PROTECTED]> wrote: Tim Roberts probo.com> writes: >> Tim Golden wrote:> > | Working off a large-ish domain, I can't seem to find a form of:> > |> > | import wmi> > | conn = wmi.WMI ()> > | stuff = conn.Win32_G

Re: [python-win32] Win32_GroupUser

2006-11-13 Thread Tim Golden
Tim Roberts probo.com> writes: > > Tim Golden wrote: > > | Working off a large-ish domain, I can't seem to find a form of: > > | > > | import wmi > > | conn = wmi.WMI () > > | stuff = conn.Win32_GroupUser () > > | > > | ... that doesn't enumerate the entire domain. > > > > I'm going to assume

Re: [python-win32] Win32_GroupUser

2006-11-13 Thread Nathan Jeffrey
On 11/13/06, Tim Golden <[EMAIL PROTECTED]> wrote: > > import wmi > > c = wmi.WMI () > sql_group = c.Win32_Group (Name="SQL_Adminstrators") > sql_users1 = sql_group.associators (wmi_result_class="Win32_Account") > # or, if you prefer > sql_users2 = sql_group.associators > (wmi_association_class="W

Re: [python-win32] Win32_GroupUser

2006-11-13 Thread Tim Roberts
Tim Golden wrote: > | Working off a large-ish domain, I can't seem to find a form of: > | > | import wmi > | conn = wmi.WMI () > | stuff = conn.Win32_GroupUser () > | > | ... that doesn't enumerate the entire domain. > > I'm going to assume that you didn't intend the > double-negative in the abov

Re: [python-win32] Win32_GroupUser

2006-11-13 Thread Tim Golden
| Has anyone had any successes with Tim Golden's wmi module and | the somewhat evil Win32_GroupUser WMI object? Well I can't say that I had, but I started to look around when you asked and there do seem to be a few caveats: 1) Win32_GroupUser is an association between Win32_Group and Win32_Accou

[python-win32] Win32_GroupUser

2006-11-13 Thread Nathan
Hey all, Has anyone had any successes with Tim Golden's wmi module and the somewhat evil Win32_GroupUser WMI object? Working off a large-ish domain, I can't seem to find a form of: import wmi conn = wmi.WMI () stuff = conn.Win32_GroupUser () ... that doesn't enumerate the entire domain. That