当前位置: 技术问答>linux和unix
Xlib编程中,如何根据某种条件得到window的ID?
来源: 互联网 发布时间:2016-04-28
本文导语: Hello, I know that in X window programming, if I know the ID of a particular window, I can manage it. For example, I can resize that window by using --- XResizeWindow(display, win, 200, 300); === So my question is, how to get the window ID? P...
Hello,
I know that in X window programming, if I know the ID of a particular window, I can manage it. For example, I can resize that window by using
---
XResizeWindow(display, win, 200, 300);
===
So my question is, how to get the window ID?
Particularly, when I know the PID of a program, how can I get the X window ID of the window in which it is running?
thanks in adv!
I know that in X window programming, if I know the ID of a particular window, I can manage it. For example, I can resize that window by using
---
XResizeWindow(display, win, 200, 300);
===
So my question is, how to get the window ID?
Particularly, when I know the PID of a program, how can I get the X window ID of the window in which it is running?
thanks in adv!
|
hi,
I think it's difficulte!
You can store window ID in a file, then other process can read it or by other IPC method.
If you want to get it just by PID but without contract before I think it's very hard.
Because you have no authority to visit it's memory.
I think it's difficulte!
You can store window ID in a file, then other process can read it or by other IPC method.
If you want to get it just by PID but without contract before I think it's very hard.
Because you have no authority to visit it's memory.
|
不懂,帮顶
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。