开发者

Find window with variable caption

开发者 https://www.devze.com 2022-12-16 14:33 出处:网络
I\'m using WinApi and C#. I need to find 开发者_Python百科window with variable caption. Caption contains constant part. I think that I need to enumerate all windows. How I can do this?you have to use

I'm using WinApi and C#. I need to find 开发者_Python百科window with variable caption. Caption contains constant part. I think that I need to enumerate all windows. How I can do this?


you have to use P/Invoke function: EnumWindows


Look for EnumWindows in MSDN - it accepts callback function, in which you get list of all windows

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号