Click here to Skip to main content
15,949,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 11:08
Mark Salsbery21-Sep-07 11:08 
GeneralRe: Getting the process that owns the window Pin
led mike21-Sep-07 11:22
led mike21-Sep-07 11:22 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 11:45
Mark Salsbery21-Sep-07 11:45 
AnswerRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 11:20
Mark Salsbery21-Sep-07 11:20 
GeneralRe: Getting the process that owns the window Pin
led mike21-Sep-07 11:26
led mike21-Sep-07 11:26 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 11:52
Mark Salsbery21-Sep-07 11:52 
GeneralRe: Getting the process that owns the window Pin
Tydia-kun21-Sep-07 11:39
Tydia-kun21-Sep-07 11:39 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 11:49
Mark Salsbery21-Sep-07 11:49 
The link I posted shows a way to do it without enumerating.  The caveat is it's for NT 4+.

For Windows versions back to 95, it seems to me it would be simpler to get the process ID from the window
handle and enumerate the processes until you find the matching ID.

Much less work than enumerating the processes AND enumerating the windows for each process!

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Getting the process that owns the window Pin
Tydia-kun21-Sep-07 12:29
Tydia-kun21-Sep-07 12:29 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 12:34
Mark Salsbery21-Sep-07 12:34 
GeneralRe: Getting the process that owns the window Pin
Tydia-kun21-Sep-07 12:44
Tydia-kun21-Sep-07 12:44 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 12:47
Mark Salsbery21-Sep-07 12:47 
GeneralRe: Getting the process that owns the window Pin
Tydia-kun21-Sep-07 12:50
Tydia-kun21-Sep-07 12:50 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 12:53
Mark Salsbery21-Sep-07 12:53 
GeneralRe: Getting the process that owns the window Pin
led mike24-Sep-07 4:40
led mike24-Sep-07 4:40 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 12:37
Mark Salsbery21-Sep-07 12:37 
GeneralRe: Getting the process that owns the window Pin
Tydia-kun21-Sep-07 12:46
Tydia-kun21-Sep-07 12:46 
GeneralRe: Getting the process that owns the window Pin
Mark Salsbery21-Sep-07 12:50
Mark Salsbery21-Sep-07 12:50 
QuestionArabic Text Pin
mwhouser21-Sep-07 9:08
mwhouser21-Sep-07 9:08 
AnswerRe: Arabic Text Pin
John R. Shaw21-Sep-07 17:18
John R. Shaw21-Sep-07 17:18 
QuestionFile info Pin
KirkNarine21-Sep-07 6:42
KirkNarine21-Sep-07 6:42 
AnswerRe: File info Pin
jhwurmbach21-Sep-07 6:58
jhwurmbach21-Sep-07 6:58 
AnswerRe: File info Pin
John R. Shaw21-Sep-07 17:27
John R. Shaw21-Sep-07 17:27 
AnswerRe: File info Pin
Hamid_RT21-Sep-07 19:33
Hamid_RT21-Sep-07 19:33 
QuestionWho have open source of Netcafe manager?? Pin
041233421-Sep-07 5:23
041233421-Sep-07 5:23 

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.