Creates a unique Runtime Callable Wrapper (RCW) object for a given tp://go.microsoft.com/fwlink/?LinkId=148003 interface.
![]()
A unique RCW for the specified IUnknown interface.
The Marshal.GetUniqueObjectForIUnknown(IntPtr) method ensures that you receive a unique RCW, because it does not match an IUnknown pointer to an existing object. Use this method when you have to create a unique RCW that is not impacted by other code that calls the Marshal.ReleaseComObject(object) method.