Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Other App handle Pin
Joaquín M López Muñoz28-Feb-02 3:32
Joaquín M López Muñoz28-Feb-02 3:32 
If you already hava a window handle for that app (obtained for instance with FindWindow), <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/windows_5y90.asp">GetWindowThreadProcessId</a> gives you the associated process handle.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

PS: Oops, did I say process handle? GetWindowThreadProcessId gives you the process id. From this you can retrieve the process handle with <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred_478z.asp">OpenProcess</a>. Regards.
GeneralRe: Other App handle Pin
Nish Nishant28-Feb-02 3:50
sitebuilderNish Nishant28-Feb-02 3:50 
GeneralHelp Pin
doudou28-Feb-02 3:01
doudou28-Feb-02 3:01 
GeneralRe: Help Pin
Joaquín M López Muñoz28-Feb-02 3:06
Joaquín M López Muñoz28-Feb-02 3:06 
GeneralRe: Help Pin
Mazdak28-Feb-02 3:14
Mazdak28-Feb-02 3:14 
GeneralRe: Help Pin
Carlos Antollini28-Feb-02 3:12
Carlos Antollini28-Feb-02 3:12 
GeneralProject Name Pin
Rajveer28-Feb-02 2:35
Rajveer28-Feb-02 2:35 
GeneralRe: Project Name Pin
Carlos Antollini28-Feb-02 2:45
Carlos Antollini28-Feb-02 2:45 
GeneralRe: Project Name Pin
Steen Krogsgaard28-Feb-02 9:53
Steen Krogsgaard28-Feb-02 9:53 
Generalwin32 debug/release Pin
Rajveer28-Feb-02 2:33
Rajveer28-Feb-02 2:33 
GeneralRe: win32 debug/release Pin
Joaquín M López Muñoz28-Feb-02 2:49
Joaquín M López Muñoz28-Feb-02 2:49 
GeneralASSERT/VERIFY Pin
Ravi Bhavnani28-Feb-02 3:02
professionalRavi Bhavnani28-Feb-02 3:02 
GeneralDial-up connection Pin
Mauricio Ritter28-Feb-02 2:22
Mauricio Ritter28-Feb-02 2:22 
GeneralRe: Dial-up connection Pin
Joaquín M López Muñoz28-Feb-02 2:42
Joaquín M López Muñoz28-Feb-02 2:42 
GeneralVisual Styles API Pin
Konstantin S. Diguine28-Feb-02 2:07
Konstantin S. Diguine28-Feb-02 2:07 
GeneralRe: Visual Styles API Pin
Ravi Bhavnani28-Feb-02 2:29
professionalRavi Bhavnani28-Feb-02 2:29 
GeneralRe: Visual Styles API Pin
Konstantin S. Diguine28-Feb-02 2:47
Konstantin S. Diguine28-Feb-02 2:47 
GeneralRe: Visual Styles API Pin
Ravi Bhavnani28-Feb-02 2:54
professionalRavi Bhavnani28-Feb-02 2:54 
GeneralCreate .mak File Pin
28-Feb-02 1:26
suss28-Feb-02 1:26 
GeneralRe: Create .mak File Pin
Joaquín M López Muñoz28-Feb-02 2:55
Joaquín M López Muñoz28-Feb-02 2:55 
GeneralQuestion about AddIns for Visual Pin
Nokia.pl28-Feb-02 0:40
Nokia.pl28-Feb-02 0:40 
GeneralRe: Question about AddIns for Visual Pin
Gavin Jerman28-Feb-02 1:18
Gavin Jerman28-Feb-02 1:18 
GeneralIs there a way to get IActiveScript*** Pin
Brian V Shifrin27-Feb-02 23:58
Brian V Shifrin27-Feb-02 23:58 
QuestionHow do u find bugs in MFC programs? Pin
John Cruz27-Feb-02 23:31
John Cruz27-Feb-02 23:31 
AnswerRe: How do u find bugs in MFC programs? Pin
Nish Nishant27-Feb-02 23:50
sitebuilderNish Nishant27-Feb-02 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.