'how to find a list of interfaces in win32com python
Is there a way to generate a list of all the interfaces implemented by a COM object? I'm new to COM objects so my vocabulary may not be correct. I've added comments in the code below for what I'm looking for. This code is a snippet from the Gepard repo at gitlab.ipfdd.de/GEPARD/gepard/-/wikis/home.
import win32com.client
import pythoncom
CLSID = "{C45E77CE-3D66-489A-B5E2-159F443BD1AA}"
hostname = gethostname()
self.IBUCSAccess = win32com.client.DispatchEx(CLSID, machine=hostname,
clsctx=pythoncom.CLSCTX_REMOTE_SERVER)
IBUCSCore = win32com.client.CastTo(self.IBUCSAccess, 'IBUCSCore') #first question, how would I know this COM object has an "IBUCSCore" interface?
IBUCSCore.GetSubSystemDefaultInterface("UserParameters|SamplePositioning|AbsolutePositionX") #Second question, where would I find these interface names, the win32com documentation isn't very helpful if you aren't already well versed in COM objects```
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
