Wraps the specified IUnknown COM interface with a [<topic://cpconruntimecallablewrapper>] (RCW).
![]()
The RCW where the specified IUnknown is wrapped.
The EnterpriseServicesHelper.WrapIUnknownWithComObject(IntPtr) method is similar to the System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(IntPtr) method, but does not attempt to maintain the identity of the unmanaged object. For example, two calls with the same IUnknown to the current method return two different RCWs, but two calls to the System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(IntPtr) method with the same IUnknown return the same RCW.