文件名称:remove-c-program-when-run
介绍说明--下载内容均来自于网络,请自行研究使用
大家都知道,一般的程序运行的时候,可执行文件本身是被操作系统保护的,不能用改写的方式访问,更别提在本身还在运行的时侯删除自己了。在网上看到一种UNDOCUMENT的方法,通过改变系统底层的文件访问模式实现删除自己。但是有没有一种用在MSDN上就能查到的函数实现呢?答案是肯定的。下面请看一个范例:-We all know that, in general, when running the executable file itself is protected by the operating system, access can not be rewritten, not to mention in itself is still running at the right time to delete himself. On the Internet see a UNDOCUMENT way, by changing the underlying file system access patterns to achieve delete itself. But is there a use can be found on MSDN the function to achieve it? The answer is yes. Please see below an example:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C++运行中程序删除自己的方法.wps