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
As a part of enabling support for ComWrappers on non-Windows platforms, the feature availability across platforms is now different.
Once the contents of #54838 are in place, non-Windows platforms will be allowed to use the IUnknown interfaces.
Currently, the following are Windows-only:
Marshalling - Some APIs, such as Marshal.GetIUnknownForObject, respect the "Global registration" of ComWrappers but currently those APIs are Windows only. We should enable all Marshal APIs that support the ComWrappers API.
Should be able to remove that attribute on the ComWrappers class
Might be a good idea to mark just the RegisterForMarshalling method as only supported on windows (based on the lack of marshalling with the global instance above)
The text was updated successfully, but these errors were encountered:
The addition of the new "unwrapping" APIs on `ComWrappers makes the final checkbox above unnecessary. The API disparity still exists but at this point there is no strong push for it be addressed. If people find this issue, we can reconsider on an API by API basis.
As a part of enabling support for
ComWrappers
on non-Windows platforms, the feature availability across platforms is now different.Once the contents of #54838 are in place, non-Windows platforms will be allowed to use the
IUnknown
interfaces.Currently, the following are Windows-only:
Marshal.GetIUnknownForObject
, respect the "Global registration" ofComWrappers
but currently those APIs are Windows only. We should enable allMarshal
APIs that support theComWrappers
API.ComWrappers
is currently marked as only supported on Windows:runtime/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ComWrappers.cs
Lines 72 to 74 in a6b9a63
ComWrappers
classRegisterForMarshalling
method as only supported on windows (based on the lack of marshalling with the global instance above)The text was updated successfully, but these errors were encountered: