private static HandleObject CreateHandleObject(IntPtr handle)
        {
            var obj = new HandleObject(handle);

            NativeMethods.GetClassName(handle, _buffer, _buffer.Capacity);
            obj.ClassName     = _buffer.ToString();
            obj.WindowCaption = "???";

            _getText.SendMessage(handle, null, null)
            .IfSuccess(x => obj.WindowCaption = x);

            return(obj);
        }
 public Helper(HandleObject parent, HandleObject root)
 {
     this._parent = parent;
     this._root   = root;
 }