Repository navigation
Commit 2e4d4dc
pywin32 converts a `PROPERTYKEY` to and from an `(IID, pid)` tuple ([source](https://github.com/mhammond/pywin32/blob/b312/com/win32comext/propsys/src/propsys.cpp#L38-L46)), and every `PKEY_*` constant in `pscon` is such a tuple ([source](https://github.com/mhammond/pywin32/blob/b312/com/win32comext/propsys/pscon.py#L153)). This makes `PyPROPERTYKEY` an alias for `tuple[PyIID, int]` and uses it for the 567 `PKEY_*` constants (plus `int` for `GUIDSTRING_MAX`/`PKEYSTR_MAX`), so the constants can be passed to `propsys` functions that take a `PyPROPERTYKEY`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a746e49 commit 2e4d4dc
2 files changed
Lines changed: 698 additions & 695 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5031 | 5031 | | |
5032 | 5032 | | |
5033 | 5033 | | |
5034 | | - | |
| 5034 | + | |
| 5035 | + | |
5035 | 5036 | | |
5036 | 5037 | | |
5037 | 5038 | | |
| |||
0 commit comments