如题。谢谢
解决方案 »
- MDI中,如何让CMainFrame窗体大小不变?
- 50求指点:关于线程的问题
- 使用Xerces-c-3.1.0时,找不到类DOMWriterImpl的定义,DOMWriterImpl.hpp文件不存在.
- 一段看不太懂的宏定义!~
- 急啊.大侠都进来看一看
- 用VC如何实现图像的打印?有没有什么好用的打印控件?
- << com技术内幕》 中“extern "c"”问题
- 请问大侠如何编程调整word文档的行间距?
- 急急急!!!请用过JFIF(JPEG)的高手进一进来。。78分全部给了。。请别浪费!
- 我有一千个(int)数据,快速存取,怎样实现最佳?
- 用什么方法可以模拟一个串口发送数据给应用程序!
- 哪位高人自己写过安装程式?100分!
BOOL GetProcessTimes(
HANDLE hProcess,
LPFILETIME lpCreationTime,
LPFILETIME lpExitTime,
LPFILETIME lpKernelTime,
LPFILETIME lpUserTime
);Parameters
hProcess
[in] Handle to the process whose timing information is sought. This handle must be created with the PROCESS_QUERY_INFORMATION access right. For more information, see Process Security and Access Rights.
lpCreationTime
[out] Pointer to a FILETIME structure that receives the creation time of the process.
lpExitTime
[out] Pointer to a FILETIME structure that receives the exit time of the process. If the process has not exited, the content of this structure is undefined.
lpKernelTime
[out] Pointer to a FILETIME structure that receives the amount of time that the process has executed in kernel mode. The time that each of the threads of the process has executed in kernel mode is determined, and then all of those times are summed together to obtain this value.
lpUserTime
[out] Pointer to a FILETIME structure that receives the amount of time that the process has executed in user mode. The time that each of the threads of the process has executed in user mode is determined, and then all of those times are summed together to obtain this value.
PsSetCreateProcessNotifyRoutine and PsSetCreateThreadNotifyRoutinecheck out this article:
http://msdn.microsoft.com/library/en-us/dnmag00/html/VTrace.asp?frame=true