Windows self-removal programs and DLLs

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.