GroupLab Widget Tap Library

CreateInstanceHelper.CreateInstanceInProcessOfWindow Method 

Creates an instance of the given type in the context of a thread running in the process that created a windowing system window.

public static MarshalByRefObject CreateInstanceInProcessOfWindow(
   Type type,
   IntPtr windowHandle
);

Parameters

type
Type of object to create. The type must derrive from MarshalByRefObject and must have a parameter-less constructor.
windowHandle
Window handle of a window created by the target host process for the created object.

Return Value

A proxied reference to the created object.

See Also

CreateInstanceHelper Class | GroupLab.WidgetTap.Helpers Namespace