Windows self-removal programs and DLLs
Photo article http://blog.csdn.net/rxxi/article/details/741557
Did a self-removal program selfdelete.
Code download (My ftpserver,usernamepassword=pub):
Ftp://pub:[email protected]/tarball/selfdelete_vs2010.tar.gz
This includes 2 items. One is SelfDel32, which is a dynamic link library project. The generated SelfDel32.dll is
We need to. Regardless of the program that uses this DLL is 32 or 64 bits, only need win32\release SelfDel32.dll.
Selfdel32\dist folder The following are all the resources that are used by other programs.
The Selfdelapp project is a demo sample program that uses the selfdel32\dist. The place that was actually called was in SelfDelApp.cpp,
Callselfdelete#include ". \selfdel32\dist\selfdeldll.h "... Case Wm_destroy: postquitmessage (0); Delete this app callselfdelete (hInst); break;
Test:
Click on the generated SelfDelApp.exe program and close it to see that the program itself has been deleted.
Windows self-removal programs and DLLs