防止用户关闭应用程序,在kernel32.dll中挂接terminateprocess [英] Prevent user to close application, hook terminateprocess in kernel32.dll

查看:378
本文介绍了防止用户关闭应用程序,在kernel32.dll中挂接terminateprocess的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我想编写一个包含两个部分的coffenet程序.
一部分安装在服务器上,一部分安装在客户端上

在客户端部分,我希望普通用户无法关闭我的程序.我在Internet上搜索,发现我必须在kernel32.dll中挂起terminateprocess函数.但是我找不到在taskmanager.exe或kernel32.dll中注入的DLL结构.

解决方案

您好,我想您可以在本文中找到答案
http://www.codeproject.com/KB/vista/api-hooks.aspx


hi I want write a program for coffenet that has two parts.
One part install on server and one part install on client

In client part I want normal user can''t close my program. I search in Internet and found I must hook terminateprocess function in kernel32.dll. But I don''t find DLL structure that inject in taskmanager.exe or kernel32.dll.

Can you help me to do this?

解决方案

Hello, i think you can find thhe answer in this article
http://www.codeproject.com/KB/vista/api-hooks.aspx


这篇关于防止用户关闭应用程序,在kernel32.dll中挂接terminateprocess的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆