通过其句柄ID打开应用程序 [英] Open an application by its handle id

查看:54
本文介绍了通过其句柄ID打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

程序员,

因为我知道我们有很多方法可以在c#中打开应用程序或文件,例如使用process.start();

但是我寻找一个代码,帮助我打开一个特定的程序,用它来处理id或其他类似的方式?



提前谢谢!

解决方案

你不能 - 它没有一个句柄,直到它打开 - 没有分配一个窗口句柄,永远保持它,直到它关闭,然后句柄被回收。 / blockquote>

没有办法做这个家伙,每次处理id都可能不同,所以你无法做到这一点


hi programmers,
as i know we have many ways to open app or file in c#, for example using process.start("");
but i looking for a code which help me to open a specific program with it handle id or Some other Similar ways?

thank in advance!

解决方案

You can't - it won't have a handle until it's opened - it isn't assigned a window handle an keep it forever, just until it closes and then the handle is recycled.


There is no way to do this dude, handle id every time could be different so you cannot able to do that


这篇关于通过其句柄ID打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆