Who can i get CPU preformance in run time ?
-
Hi All 1.I using MFC in my application , and i need to type on screen the preformance of the CPU in runtime. How can i know the preformance ? what API can i use ? 2.I need to show some FORM (window) that i have in my app. on top, how can i do it ? Thanks for any halp.
-
Hi All 1.I using MFC in my application , and i need to type on screen the preformance of the CPU in runtime. How can i know the preformance ? what API can i use ? 2.I need to show some FORM (window) that i have in my app. on top, how can i do it ? Thanks for any halp.
1- GetPerformaceInfo(...)[^] This function get you the needed info, but the requirements are high: Client: Windows XP Server Windows 2003 You can also use: GetProcessTimes(...)[^] You could enumerate all the processes using
EnumProcesses()
api, and useGetProcessTimes(...)
with it. 2- You could use: MFC:SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
Win32:SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
this is this. -
1- GetPerformaceInfo(...)[^] This function get you the needed info, but the requirements are high: Client: Windows XP Server Windows 2003 You can also use: GetProcessTimes(...)[^] You could enumerate all the processes using
EnumProcesses()
api, and useGetProcessTimes(...)
with it. 2- You could use: MFC:SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
Win32:SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE);
this is this.Use this