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
This makes it easier to iterate though Win32 collections (eg INetFwRules, INetFwServices, ...)
Drawbacks
At the current time, it seems that the Windows projection does not mark what structs support this kind of operation, so it would be a manual process of determining which structures this can be implemented on.
Rationale and alternatives
It could be implemented as a separate library, but it would mean that the implementation wont be-able to use the IntoIterator trait on the objects directly
Additional context
I have created an iterator for this kind of object. I am using it to iterate over the INetFwRules.
And there are of course many COM interfaces that follow the IEnumXxx pattern that could be well served by an Iterator implementation. Ideally, any solution here would need to cover all or most of them generically.
Just reviewing this old issue - we now have first class support for VARIANT and PROPVARIANT in windows-core (#2786) but there isn't enough metadata to generally support iteration of IEnumXxx interfaces due to all of the unique or individual semantics from one enumeration interface to another and I'm reluctant to hand-author Iterator for each one in the windows crate as that doesn't scale.
Motivation
This makes it easier to iterate though Win32 collections (eg
INetFwRules
,INetFwServices
, ...)Drawbacks
At the current time, it seems that the Windows projection does not mark what structs support this kind of operation, so it would be a manual process of determining which structures this can be implemented on.
Rationale and alternatives
It could be implemented as a separate library, but it would mean that the implementation wont be-able to use the IntoIterator trait on the objects directly
Additional context
I have created an iterator for this kind of object. I am using it to iterate over the INetFwRules.
The text was updated successfully, but these errors were encountered: