Click here to Skip to main content
15,909,437 members
Home / Discussions / C#
   

C#

 
Questionproblem with instalation Pin
papa198027-Nov-05 21:45
papa198027-Nov-05 21:45 
AnswerRe: problem with instalation Pin
Guffa27-Nov-05 21:55
Guffa27-Nov-05 21:55 
GeneralRe: problem with instalation Pin
papa198027-Nov-05 22:25
papa198027-Nov-05 22:25 
QuestionTherad safety Pin
Den2Fly27-Nov-05 21:07
Den2Fly27-Nov-05 21:07 
AnswerRe: Therad safety Pin
Guffa27-Nov-05 21:18
Guffa27-Nov-05 21:18 
GeneralRe: Therad safety Pin
Den2Fly27-Nov-05 23:03
Den2Fly27-Nov-05 23:03 
AnswerRe: Therad safety Pin
leppie27-Nov-05 22:08
leppie27-Nov-05 22:08 
GeneralRe: Therad safety Pin
Den2Fly27-Nov-05 23:56
Den2Fly27-Nov-05 23:56 
GeneralRe: Therad safety Pin
Den2Fly27-Nov-05 23:56
Den2Fly27-Nov-05 23:56 
QuestionUsing Microosft.Ink Pin
dhol27-Nov-05 20:14
dhol27-Nov-05 20:14 
QuestionDatagrid with Fixed Header and Footer Pin
welcome_thennu27-Nov-05 20:00
welcome_thennu27-Nov-05 20:00 
QuestionServer Time Pin
Taravat27-Nov-05 19:38
Taravat27-Nov-05 19:38 
AnswerRe: Server Time Pin
Curtis Schlak.28-Nov-05 3:13
Curtis Schlak.28-Nov-05 3:13 
Questionproblem facing in windows service Pin
raheeli27-Nov-05 17:44
raheeli27-Nov-05 17:44 
AnswerRe: problem facing in windows service Pin
S. Senthil Kumar27-Nov-05 19:21
S. Senthil Kumar27-Nov-05 19:21 
QuestionStatic function Pin
dinh van hai27-Nov-05 17:33
dinh van hai27-Nov-05 17:33 
AnswerRe: Static function Pin
S. Senthil Kumar27-Nov-05 20:00
S. Senthil Kumar27-Nov-05 20:00 
AnswerRe: Static function Pin
dinh van hai27-Nov-05 20:14
dinh van hai27-Nov-05 20:14 
AnswerRe: Static function Pin
Guffa27-Nov-05 21:38
Guffa27-Nov-05 21:38 
QuestionGetProcessesByName - other way? Pin
FreewareFire27-Nov-05 12:49
FreewareFire27-Nov-05 12:49 
Hi together!

I'm currently searching a way to get a Process by it's window title, not by it's classname...

in following code, the GameName would be, e.g. "sol" (means Processname of game "Solitär")
<br />
static ProcessMemoryReaderLib.ProcessMemoryReader pReader;<br />
        static Process[] myProcesses;<br />
<br />
        public static void InitRWCode(string GameName)<br />
        {<br />
            pReader = new ProcessMemoryReaderLib.ProcessMemoryReader();<br />
            myProcesses = Process.GetProcessesByName(GameName);<br />
        }<br />


that's the code i'm currently using...

but i'm looking for something like that:

in this case GameName would be "Solitär" instead of "sol"

<br />
static ProcessMemoryReaderLib.ProcessMemoryReader pReader;<br />
        static Process[] myProcesses;<br />
<br />
        public static void InitRWCode(string GameName)<br />
        {<br />
            pReader = new ProcessMemoryReaderLib.ProcessMemoryReader();<br />
            myProcesses = Process.GetProcessesByWindowTitle(GameName);<br />
        }<br />


Has someone an idea Confused | :confused:

I've already tried the GetWindowThreadProcessId together with the FindWindow, but it returns the wrong ID...

Thx for any suggestions!!!

Greets Ralf

FreewareFire
AnswerRe: GetProcessesByName - other way? Pin
S. Senthil Kumar27-Nov-05 19:56
S. Senthil Kumar27-Nov-05 19:56 
GeneralRe: GetProcessesByName - other way? Pin
FreewareFire28-Nov-05 0:38
FreewareFire28-Nov-05 0:38 
QuestionToolbar Color Pin
fredspv27-Nov-05 12:07
fredspv27-Nov-05 12:07 
QuestionC# DisplayComposeForm for Smartphone Pin
bklynjava127-Nov-05 11:10
bklynjava127-Nov-05 11:10 
QuestionIndexOutOfRangeException with SgmlReader Pin
Liunardu27-Nov-05 8:18
Liunardu27-Nov-05 8:18 

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.