These dotNetObjects are implemented by the MaxCustomControls Assembly and provide methods for accessing some of the major Win32 API functions including message sending, bringing windows to top, and wrapping of window handlers as DotNet Pointers.
dotNetObject "MaxCustomControls.Win32API"
.[static]<System.Int32>BringWindowToTop <System.IntPtr>hWnd .<System.Boolean>Equals <System.Object>obj .[static]<System.Boolean>Equals <System.Object>objA <System.Object>objB .<System.Int32>GetHashCode() .<System.Type>GetType() .[static]<System.Boolean>ReferenceEquals <System.Object>objA <System.Object>objB .[static]<System.Int32>SendMessage <System.IntPtr>hWnd <System.UInt32>Msg <System.UIntPtr>wParam <System.UIntPtr>lParam .<System.String>ToString()
dotNetObject "MaxCustomControls.Win32HandleWrapper"
Use System.Windows.Forms.NativeWindow.FromHandle() instead:
theHwnd = (dotNetObject "System.Windows.Forms.NativeWindow").FromHandle thePtr