[python-win32] Accessing Interfaces
Tim Roberts
timr at probo.com
Fri Feb 20 22:38:04 CET 2009
Te-jé Rodgers wrote:
>
> I don’t know if I’m in the right place. Basically I’m doing some
> messing about in the Windows API which has been going fine so far, but
> then I noticed most of the newer APIs require interfaces, like this
> one: http://msdn.microsoft.com/en-us/library/dd368183(VS.85).aspx
> <http://msdn.microsoft.com/en-us/library/dd368183%28VS.85%29.aspx>.
>
>
>
> I’d like to know how I would be able to wrap and use those from Python.
>
PyWin32 has always supported COM interfaces, as long as they support
late binding (meaning IDispatch). These DirectWrite interfaces are
still in beta (they are Win 7 only), so I seriously doubt anyone has
played with them enough to know whether they do IDispatch.
If they don't, it's always (well, almost always) possible to handle
these with ctypes and comtypes.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list