Jump to content
Wikipedia The Free Encyclopedia

Runtime Callable Wrapper

From Wikipedia, the free encyclopedia
This article relies largely or entirely on a single source . Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.
Find sources: "Runtime Callable Wrapper" – news · newspapers · books · scholar · JSTOR
(December 2023)

A Runtime Callable Wrapper (RCW) is a proxy object generated by the .NET Common Language Runtime (CLR) in order to allow a Component Object Model (COM) object to be accessed from managed code. Although the RCW appears to be an ordinary object to .NET clients, its primary function is to marshal calls and data between a .NET client and a COM object.[1]

For example, a managed application written in C# might make use of an existing COM library written in C++ or Visual Basic 6, via RCWs.

The runtime creates exactly one RCW for each COM object, regardless of the number of references that exist on that object. The runtime maintains a single RCW per process for each object. If you create an RCW in one application domain or apartment, and then pass a reference to another application domain or apartment, a proxy to the first object will be used.

References

[edit ]
  1. ^ jkoritzinsky (2023年04月19日). "Runtime Callable Wrapper - .NET". learn.microsoft.com. Retrieved 2023年12月18日.
[edit ]
Stub icon

This computer-programming-related article is a stub. You can help Wikipedia by expanding it.

AltStyle によって変換されたページ (->オリジナル) /