C
C#2y ago
FaNim

❔ How to work with Hwnd in c#

I want to open programs using Process.Start but all those programs have empty MainWindowHandle and MainWindowHandle do i need after it opens search again for all processes using EnumWindows or smth like that to refresh datas in this opened processes to have control or is there any better solution to search for hwnd and title data or just get it after Process.Start. And is it all safe?
2 Replies
Jester
Jester2y ago
what are you trying to achieve? you want a list of all windows? or just the handle of the window of the process you started? and with that handle you want the window title?
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server