MFC下有没有相关的API?
解决方案 »
- 如何保护某个注册表项不被修改
- adox对象创建失败
- 请问在win32用打开文件对话框一次打开多个文件后,如何得到每个文件的路径?也就是说如何从lpstrFile中得到每个文件的的路径!谢谢!
- 算法爱好者进,50分问一个有难度的问题 ,挑战一下
- LNK2001错误
- ::是什么意思?
- 小弟想用OPENURL()连接一个URL,传送数据过去,但我看MSDN说OPENURL()好像不能写数据?请进来看看!
- 如何在整个WINDOWS操作系统中屏蔽掉F3键 ;))))))))
- 富文本RichEditCtrl实现IExRichEditOleCallback接口插入OLE对象,获取文件路径问题。来看看。
- 如何获得和释放系统图标资源
- 请问 Vc++ 里如何给程序设置快捷键?
- 疑惑,关于怎样查看MFC基础类的原代码?
ps -eo pid,pmem,%cpu
可以得到所有进程的mem和cpu使用情况windows的话,记得前面有一个帖子提到
ntdll.dll文件中有个NtQuerySystemInformation函数
http://community.csdn.net/Expert/TopicView3.asp?id=4392620
MFC库里应该有吧?
HANDLE hProcess, // specifies the process of interest
LPFILETIME lpCreationTime, // when the process was created
LPFILETIME lpExitTime, // when the process exited
LPFILETIME lpKernelTime, // time the process has spent in kernel
// mode
LPFILETIME lpUserTime // time the process has spent in user mode
);
HANDLE hProcess, // handle to process
LPCVOID lpAddress, // address of region
PMEMORY_BASIC_INFORMATION lpBuffer,
// address of information buffer
DWORD dwLength // size of buffer
);也不知道对不对,没用过