using System; using System.Windows.Forms; namespace JetBrains.Interop.WinApi.Wrappers { /// /// Wraps a window handle into the WinForms interface. /// public unsafe class Win32Window : IWin32Window { #region Data private readonly IntPtr _handle; #endregion #region Init /// /// Wraps a native window handle. /// Can be Null. /// public Win32Window(IntPtr handle) { _handle = handle; } /// /// Wraps a native window handle. /// Can be Null. /// public Win32Window(void* handle) { _handle = (IntPtr)handle; } #endregion #region IWin32Window Members /// ///Gets the handle to the window represented by the implementer. /// /// /// ///A handle to the window represented by the implementer. /// ///1 public IntPtr Handle { get { return _handle; } } #endregion } }