网上介绍用createprocess方式启动并进行调试其它进程,那么如何在nt下进行用DebugActiveProces调试其它正在运行的进程呢?
msdn上谈到
The debugger must have appropriate access to the target process; it must be able to open the process for PROCESS_ALL_ACCESS access. On Windows 95/98, the debugger has appropriate access if the process identifier is valid. However, on Windows NT/Windows 2000, DebugActiveProcess can fail if the target process was created with a security descriptor that grants the debugger anything less than full access. Note that if the debugging process has the SE_DEBUG_NAME privilege granted and enabled, it can debug any process.具体如何实现呢?
msdn上谈到
The debugger must have appropriate access to the target process; it must be able to open the process for PROCESS_ALL_ACCESS access. On Windows 95/98, the debugger has appropriate access if the process identifier is valid. However, on Windows NT/Windows 2000, DebugActiveProcess can fail if the target process was created with a security descriptor that grants the debugger anything less than full access. Note that if the debugging process has the SE_DEBUG_NAME privilege granted and enabled, it can debug any process.具体如何实现呢?
解决方案 »
- 数据库记录删除
- 高手进。。
- reportmachine 3.0中如何设置套打?
- 我的程序使用运行时库以便使运行程序变小,但是我给用户安装的时候我该怎么安装Delphi运行时库?
- 耍了三年的女朋友今天给我提出分手,欲哭无泪,只有散分了。
- 各位高手请帮帮我这个菜鸟吧
- 关闭应用程序的问题
- 求助!!!哪位大侠用过formula one 中的ttf16.ocx插件实现甘特图,网络图。不胜感激。
- 如何做到如双击doc文件就可以打开word,双击xls文件就可打开Excel
- 在SQL2000中可以执行的存储过程,在delphi中为什么不可以呢?
- 请教:怎么才能将DBGrid里面标题栏显示的字段名用字段值来显示?
- 怎么做个向导啊,小妹先谢谢了,在线等
http://flier_lu.blogone.net/?id=1324316
http://www.blogcn.com/User8/flier_lu/blog/1618917.html
再用WaitForDebugEvent等待调试事件