Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I need to make a c program that is capable of reading the current task name peformed on computer, but I am unable to reach that task.

Thank you.
Posted
Comments
[no name] 12-Sep-15 9:54am    
I would suggest psapi. Just Google for "psapi", you will get a lot of info. Keep in mind, maybe meanwhile there are more advanced technics available.
Suryakant Turing 13-Sep-15 13:15pm    
Thanks, for your solution, it can take me to the next level of my programming.

1 solution

hi,
Win32 API can be used in C code to get such information.
Chekout this link[^]
several examples are given.

An informative C++ article on CP Win32 APIs for Process Retrieval[^].
For more info, you can google for 'InitToolhelp32'.

MSDN has an example in C++[^]

hope this helps!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900