You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problems that arise when remote functions are defined in interfaces related to structured storage. #607
cbReserved1 is not needed when calling from the local side. If we specify cbReserved1 as 0 and call from the local side, a COMError with the error code STG_E_INVALIDPOINTER (-2147287031, 0x80030009) will be raised.
cbReserved2 is not needed when calling from the local side. If we specify cbReserved2 as 0 and call from the local side, a COMError with the error code STG_E_INVALIDPOINTER (-2147287031, 0x80030009) will be raised.
Because RemoteNext is defined instead of Next, __iter__, __next__, and __getitem__ are not implemented in the interface, so it does NOT become an iterator or index-accessible object.
Since the return value of RemoteEnumElements cannot be obtained, it is not possible to test whether IEnumSTATSTG works as an iterator. However, by looking at the generated wrapper module, it can be confirmed that __iter__ is not present.
Activity
junkmd commentedon Aug 26, 2024
Reproducers
We can reproduce the
COMErrorby adding these tests totest_storage.Test_IStorage.Since the return value of
RemoteEnumElementscannot be obtained, it is not possible to test whetherIEnumSTATSTGworks as an iterator. However, by looking at the generated wrapper module, it can be confirmed that__iter__is not present.