问题描述
如何使用MFC VC ++ 6.0应用程序获取任务管理器的提交费用值。
我正在尝试一些代码但没有获得与任务管理器相同的提交费用值。我获得的价值远低于任务经理的价值。我不知道我需要使用哪种格式说明符来获取确切的值。请帮帮我...
谢谢...
我尝试过的事情:
char CommitChargeInfo [10];
PERFORMANCE_INFORMATION PerfmncInfo;
GetPerformanceInfo(& PerfmncInfo,sizeof(PerfmncInfo));
sprintf(CommitChargeInfo,%u,PerfmncInfo.CommitTotal);
m_CommitCharge.SetWindowText((CString)CommitChargeInfo);
How to get Commit charge value of task manager using MFC VC++ 6.0 application.
I am trying some code but not getting the same Commit Charge value as of Task Manager. The value I am getting is much lesser than that of task manager. I don't know which format specifier I need to use to get exact value. Please help me...
Thanks...
What I have tried:
char CommitChargeInfo[10];
PERFORMANCE_INFORMATION PerfmncInfo;
GetPerformanceInfo(&PerfmncInfo,sizeof(PerfmncInfo));
sprintf(CommitChargeInfo, "%u", PerfmncInfo.CommitTotal);
m_CommitCharge.SetWindowText((CString)CommitChargeInfo);
推荐答案
这篇关于获得提交费用值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!