-
-
Notifications
You must be signed in to change notification settings - Fork 102
Adds propidl.h #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds propidl.h #263
Conversation
This adds most of the contents of propidl.h to comtypes. I have found that there is a lot of COM interfaces that use the IPropertyStore interface along with the PROPVARIANT structure. I thought it would be nice to include this in comtypes like the VARIANT structure has been added.
You're welcome to finish it if you believe it's useful for many use cases. As I understood the current release can go without it, right? |
Oh yeah the current release can go without a problem. There are a lot of interfaces and functions that use the PROPVARIANT structure. The goal for this is to make available the IPropertyStore interface which gets used in a whole lot of the Windows API. core audio, shell, portable devices, photos, function discovery, media engine... those kids of things. Here is a list of functions and interfaces that use the PROPVARIANT structure, This is not an exhaustive list bu it gives you a good idea of how often it is used in the Windows API. Functions (click to expand)
Interfaces (click to expand)
There are 1024 times PROPVARIANT is written in the Windows 10 SDK, there are 471 times IPropertyStore is used. |
If you still want to merge it (with the necessary modifications), please rebase it to the current master and run CI. (cc: @vasily-v-ryabov) |
This adds most of the contents of propidl.h to comtypes. I have found that there is a lot of COM interfaces that use the IPropertyStore interface along with the PROPVARIANT structure. I thought it would be nice to include this in comtypes like the VARIANT structure has been added.
I have not finished yet and will be adding the
value
property to PROPVARIANT and also adding methods to interfaces as needed. I wanted to see if there is an interest in adding this functionality to comtypes before I spend the time to finish it up.