Skip to content

Commit 720cf74

Browse files
committed
docs: Add comment on GUID_NULL from IProvideClassInfo2 in FindOutgoingInterface.
Adds a comment to `FindOutgoingInterface` to explain that some COM servers may return `GUID_NULL` from `IProvideClassInfo2.GetGUID` instead of a valid interface IID. This clarifies the subsequent error handling for this specific edge case.
1 parent 181d249 commit 720cf74

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

comtypes/client/_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def FindOutgoingInterface(source: IUnknown) -> type[IUnknown]:
121121
pass
122122
else:
123123
if guid == comtypes.GUID():
124+
# Some COM servers, even if they implement `IProvideClassInfo2`,
125+
# may return GUID_NULL instead of the default source interface's GUID.
124126
raise NotImplementedError("retrieved outgoing interface IID is GUID_NULL")
125127
# another try: block needed?
126128
try:

0 commit comments

Comments
 (0)