Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how make limit running my program? Pin
CPallini5-May-10 8:09
mveCPallini5-May-10 8:09 
QuestionHow to get A WindowHandle from a process Id Pin
Rajmohan SK5-May-10 1:56
Rajmohan SK5-May-10 1:56 
AnswerRe: How to get A WindowHandle from a process Id Pin
Code-o-mat5-May-10 2:10
Code-o-mat5-May-10 2:10 
AnswerRe: How to get A WindowHandle from a process Id Pin
Member 39226395-May-10 2:11
Member 39226395-May-10 2:11 
GeneralRe: How to get A WindowHandle from a process Id Pin
Rajmohan SK6-May-10 3:28
Rajmohan SK6-May-10 3:28 
AnswerRe: How to get A WindowHandle from a process Id Pin
Cvaji5-May-10 2:13
Cvaji5-May-10 2:13 
AnswerRe: How to get A WindowHandle from a process Id Pin
CPallini5-May-10 2:14
mveCPallini5-May-10 2:14 
AnswerRe: How to get A WindowHandle from a process Id Pin
Michel Godfroid5-May-10 2:20
Michel Godfroid5-May-10 2:20 
There is no single window handle. A process may have multiple main windows, or none at all. So you have to enumerate all windows, and select the ones which have no owner, and the correct process id. Those will be 'main' windows of the process.

And before thou protests:
Yes, I know that in .Net there is a property called System.Diagnostics.Process.MainWindowHandle, but the implementation is just plain wrong.
AnswerRe: How to get A WindowHandle from a process Id Pin
Rajmohan SK5-May-10 2:31
Rajmohan SK5-May-10 2:31 
QuestionRe: How to get A WindowHandle from a process Id Pin
Rajmohan SK6-May-10 18:16
Rajmohan SK6-May-10 18:16 
QuestionDLL and Pure Virtual Function Pin
john56325-May-10 1:52
john56325-May-10 1:52 
AnswerRe: DLL and Pure Virtual Function Pin
CPallini5-May-10 2:18
mveCPallini5-May-10 2:18 
GeneralRe: DLL and Pure Virtual Function Pin
john56325-May-10 7:15
john56325-May-10 7:15 
QuestionGet System Shutdown notification Pin
Cvaji5-May-10 1:41
Cvaji5-May-10 1:41 
AnswerRe: Get System Shutdown notification Pin
Cvaji5-May-10 1:54
Cvaji5-May-10 1:54 
GeneralRe: Get System Shutdown notification Pin
Member 39226395-May-10 2:20
Member 39226395-May-10 2:20 
Questionstatic variable Vs Global Variable Pin
Game-point5-May-10 1:06
Game-point5-May-10 1:06 
AnswerRe: static variable Vs Global Variable Pin
Rajesh R Subramanian5-May-10 1:16
professionalRajesh R Subramanian5-May-10 1:16 
AnswerRe: static variable Vs Global Variable Pin
«_Superman_»5-May-10 6:37
professional«_Superman_»5-May-10 6:37 
QuestionWriteFile / CreateThread Pin
Fareed Rizkalla5-May-10 0:15
Fareed Rizkalla5-May-10 0:15 
AnswerRe: WriteFile / CreateThread Pin
Rajesh R Subramanian5-May-10 0:39
professionalRajesh R Subramanian5-May-10 0:39 
GeneralRe: WriteFile / CreateThread Pin
Fareed Rizkalla5-May-10 0:47
Fareed Rizkalla5-May-10 0:47 
GeneralRe: WriteFile / CreateThread Pin
Rajesh R Subramanian5-May-10 0:53
professionalRajesh R Subramanian5-May-10 0:53 
GeneralRe: WriteFile / CreateThread Pin
Fareed Rizkalla5-May-10 1:17
Fareed Rizkalla5-May-10 1:17 
GeneralRe: WriteFile / CreateThread Pin
enhzflep5-May-10 1:20
enhzflep5-May-10 1:20 

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.