Пример #1
0
        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);
        }
Пример #2
0
 public Helper(HandleObject parent, HandleObject root)
 {
     this._parent = parent;
     this._root   = root;
 }