Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List Processes
#2
Thanks that's useful!
Just a little addition is that when used as it is in Visual Studio I can't see the full process name, just the first character.
The solution to that is to have the Conversion Code %ls instead of %s in printf, because proc32.szExeFile is of type WCHAR

printf("\n%d\t\t%ls",proc32.th32ProcessID,proc32.szExeFile);/*print pid and processname*/
Reply


Messages In This Thread
List Processes - by brett7 - 10-08-2009, 12:32 PM
RE: List Processes - by charnet3d - 10-09-2009, 02:44 PM
RE: List Processes - by brett7 - 10-09-2009, 03:29 PM
RE: List Processes - by Akshay* - 10-10-2009, 05:44 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)