comtypes
comtypes copied to clipboard
A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.
I'm working with comtypes through pyWinCoreAudio. Some of the interfaces exposed there have functions for registering callbacks when something happens such as the volume changing on an audio device, see...
This package is very useful, thanks a lot for providing it! I would like to use it in a large open-source project ([3D Slicer](https://github.com/Slicer/Slicer)) but I'm not sure if I...
If structure packing is failed, then function calc_packing is failed too due to incorrect error handing ("local variable 'details' referenced before assignment" in line 137). Here is proposed patch to...
Fixes #114
Some dunder methods or attributes in a friendly named module under `comtypes.gen` return non-intuitive values. ```py >>> from comtypes.client import GetModule >>> Scripting = GetModule("scrrun.dll") >>> Scripting # expected is...
Internet Explorer will be end of support. https://blogs.windows.com/windowsexperience/2021/05/19/the-future-of-internet-explorer-on-windows-10-is-in-microsoft-edge/ Currently, some tests using IE were skipped, (see https://github.com/enthought/comtypes/issues/267#issuecomment-1029305670 by @dmwyatt, #271, #298) However, there still remains tests using `shdocvw.dll`(`ieframe.dll`), which provides...
Currently comtypes does not support variants with typecode 0xa (VT_ERROR). This is particularly important for servers supporting optional arguments for their methods, as an optional argument is replaced with a...
Using python 3.9.7 and Windows 10. When trying out a COM DLL that supports events (written in C++) the ShowEvents function detects and prints out the events correctly but attaching...
Internet Explorer is end of support. https://blogs.windows.com/windowsexperience/2022/06/15/internet-explorer-11-has-retired-and-is-officially-out-of-support-what-you-need-to-know/ https://blogs.windows.com/windowsexperience/2021/05/19/the-future-of-internet-explorer-on-windows-10-is-in-microsoft-edge/ But the docstring of `client.GetModule` still contains examples about IE. https://github.com/enthought/comtypes/blob/b35a0ff69188e56f38ad6fa7994403ccf0a43a41/comtypes/client/_generate.py#L79-L119
Consider the following, very simple COM/ATL project made with MSVC 2017 (15.9.24, Windows 10 Pro 2004): [comProjectWithArray-v2.zip](https://github.com/enthought/comtypes/files/4845419/comProjectWithArray-v2.zip). It does not contain any functionality and is used to reproduce the empty...