Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What such code mean? Pin
kcynic21-Sep-07 22:03
kcynic21-Sep-07 22:03 
AnswerRe: What such code mean? Pin
John R. Shaw21-Sep-07 21:08
John R. Shaw21-Sep-07 21:08 
QuestionGetting the process that owns the window Pin
Tydia-kun21-Sep-07 10:24
Tydia-kun21-Sep-07 10:24 
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 

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.