C#获取窗口句柄启动流程后, [英] C# get window handle after starting a process

查看:139
本文介绍了C#获取窗口句柄启动流程后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来获取窗口句柄(IntPtr的)为其后从C#应用程序发起的的Process.Start()的窗口?

Is there a way to get the window handle (IntPtr) for a window after its launched from a C# app with Process.Start()?

推荐答案

如果这是你后, <是主窗口code> Process.MainWindowHandle 会给你你所需要的。

If it's the main window you're after, Process.MainWindowHandle will give you what you need.

这篇关于C#获取窗口句柄启动流程后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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