0

I am trying to get the HWND to the instance of Visual Studio that I am currently using to debug my programme but I am a little lost as to how exactly I go about doing that. Do I need to search all the Windows that currently open and then select the right one and get a handle to it. Also what if I have multiple instances of Visual Studio running, how would I get a handle to the correct one?

EDIT: It seemed sensible to add the actual problem here upon reflection and advice in the comments: I have a multiple monitor set up and different instances of visual running on each. I am trying to get the console produced when debugging to appear on the same monitor as the instance of visual studio that generated it so that both consoles do not overlap each other when they are generated.

4

0 回答 0