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
Rashmi kaneri
NA
6
5.7k
how to get processes belonging to Win32 in c#
Sep 8 2016 12:51 AM
My requirement is to find the processes belonging win32 and kill them.
i have written code as given below but it gives all the processes including Win64.
i searched many sites for the same but could not get what i needed.
can someone help me on this......
Process[] ListofProcess = Process.GetProcesses();
foreach (Win32_Process prossesitem in ListofProcess)
{
if ((Equals(prossesitem, strProcessName) == true))
{
prossesitem.Kill();
}
}
Reply
Answers (
2
)
How to Call a class
Read excel cell value using Closedxml