Forum posts for conhost.exe

Get PID of conhost.exe associated to my console process

I would like to know how I can get the PID of the conhost.exe processed associated to my console process, retrieving this information from my program itself.

My program basically is a 32-bit program running on a 64-bit OS. All of this is written in C/C++. Since probably the conhost.exe process is 64 bit, this might be a little bit more challenging because of that. That said, the only information worth to my eyes is the conhost.exe PID, I don't need anything else.

I'm not too sure how to do it correctly in pure WinApi/C++. Any help would be greatly appreciated.

Thanks!

View complete forum thread with replies

Other posts related to conhost.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Why is conhost.exe being launched?
Python on windows - conhost.exe CPU usage
C# Multiple processes conhost.exe while using UDP
Rails server running in command prompt causing conhost.exe to crash
“plink.exe” hangs on Windows Server 2008 R2 , creates process “conhost.exe”
How to count number of strings in a list
Conhost process stays opens
How would I redirect console output for all applications a application I launch using a Process
Java - Get specific word from string [closed]
Get PID of conhost.exe associated to my console process

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.