示例#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;
 }