HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,FALSE, entry.dwPID);
if ( hProcess )
{
CloseHandle( hProcess );
}上一段是我写的部分DLL代码,意在关闭进程,其中entry.dwPID是通过列举进程得到的,可是上面的代码没有用,不能关闭进程!不知道为什么!
if ( hProcess )
{
CloseHandle( hProcess );
}上一段是我写的部分DLL代码,意在关闭进程,其中entry.dwPID是通过列举进程得到的,可是上面的代码没有用,不能关闭进程!不知道为什么!
解决方案 »
- 请教关于字符串转二进制的一个问题
- CListCtrl第一列为什么不能居中?
- 视频图像采集显示的问题
- MoveFileEx问题,高手请进
- 强烈关注:如何手工处理,将补支持MFC的工程转换为支持MFC的工程????
- 在HTMLView中如何判断网页是否完全打开(下载完成)?
- 救命啊!! 字符串的格式问题, 急急急!!!! 在线等待!!!!!
- x+=2 和 x=+2 的区别是什么,我不是学c的,我搞pb,但这个问题还是c里多!
- GDI+ 图片拉伸的问题
- 奇怪:我的任一个窗口的标题在正常名字后都加了一个" - Microsoft Internet Explorer",以致我得到的是不正确的标题名,我怎么改设置?
- 如何实现给予对话框的程序在不同的分辨率、字体下都能实现最大化,当然对话框中的控件也要随着变化!
- 为什么我做的SOCKET发送失败?
HANDLE hProcess, // handle to the process
UINT uExitCode // exit code for the process
);
或者
VOID ExitProcess(
UINT uExitCode // exit code for all threads
);
Parameters
uExitCode
Specifies the exit code for the process, and for all threads that are terminated as a result of this call. Use the GetExitCodeProcess function to retrieve the process's exit value. Use the GetExitCodeThread function to retrieve a thread's exit value