Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

process ID - Set focus to window

Status
Not open for further replies.

stnkyminky

Programmer
Oct 15, 2001
476
US
I can retrieve a pid based on exe name of an application. If the process is running the function returns the pid.

How do I use the pid to set focus to the application? Scott
Programmer Analyst
<{{><
 

Yes it can be done but you will have to enum through the processed checking their exe names to get the correct hwnd for the API call GetWindowThreadProcessIdPriv.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top