TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Alex
NA
1
1.5k
How can i handle a 64bit process
Nov 4 2012 3:46 AM
Hello
I just started learning c# and bumped into a frustrating problem
I have the following code to handle a process:
public bool Process_Handle(string ProcessName)
{
try
{
Process[] ProcList = Process.GetProcessesByName(ProcessName);
if (ProcList.Length == 0)
return false;
else
{
pHandel = ProcList[0].Handle;
return true;
}
}
catch (Exception ex)
{
Console.Beep(); Console.WriteLine("Process_Handle - " + ex.Message);
return false;
}
}
When i try this with for example WinRAR it works i can check if its running or not etc but when i want to do this with for example iw5mp.exe*32 (in task manager), im guessing a 64bit program, it just says it didn't find the process.
Now my question is how can i make edit it so that process_handle will handle all processes including 64bit processes.
Huge thanks in advance, i've been frustrated with this for quite some time now
Reply
Answers (
1
)
how to generate report in visual studio 2012 with sql server 2008
what will be your answer if someone ask you why C# does not support Multiple Inheritance ?