Skip to content

Implement new ComWrappers APIs#80402

Merged
AaronRobinsonMSFT merged 14 commits intodotnet:mainfrom
AaronRobinsonMSFT:comwrapper_apis
Jan 20, 2023
Merged

Implement new ComWrappers APIs#80402
AaronRobinsonMSFT merged 14 commits intodotnet:mainfrom
AaronRobinsonMSFT:comwrapper_apis

Conversation

@AaronRobinsonMSFT
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT commented Jan 9, 2023

Fixes #79674
Fixes #79679
Fixes #80451

This also adds support in NativeAOT.
NativeAOT support for ICustomQueryInterface for ComWrappers
was also added.

/cc @dotnet/interop-contrib

The ComWrappers API is being expanded to enable
users to get the underlying managed or unmanaged
object from the created wrappers.
a wrapper is a ComWrappers impl.
@ghost
Copy link

ghost commented Jan 9, 2023

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

Make GetIUnknownImpl a public API.
@AaronRobinsonMSFT AaronRobinsonMSFT marked this pull request as ready for review January 10, 2023 21:16
@ghost
Copy link

ghost commented Jan 18, 2023

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #79674
Fixes #79679
Fixes #80451

This also adds support in NativeAOT.
NativeAOT support for ICustomQueryInterface for ComWrappers
was also added.

/cc @dotnet/interop-contrib

Author: AaronRobinsonMSFT
Assignees: AaronRobinsonMSFT
Labels:

area-System.Runtime.InteropServices, area-Interop-coreclr

Milestone: 8.0.0

@AaronRobinsonMSFT
Copy link
Member Author

@jkoritzinsky and @elinor-fung This is green and ready for review.

Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 6655708 into dotnet:main Jan 20, 2023
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the comwrapper_apis branch January 20, 2023 18:52
mdh1418 pushed a commit to mdh1418/runtime that referenced this pull request Jan 24, 2023
* Add TryGetComInstance and TryGetObject APIs

The ComWrappers API is being expanded to enable
users to get the underlying managed or unmanaged
object from the created wrappers.

* Add tagged interface for certainty in identifying
a wrapper is a ComWrappers impl.

Co-authored-by: Jeremy Koritzinsky <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

4 participants