Windows self-removal programs and DLLs

Source: Internet
Author: User
Windows self-removal programs and DLLs

Refer to Article http://blog.csdn.net/rxxi/article/details/741557

Did a self-removal program selfdelete. Code download (my FTP server, username password =pub):

Ftp://pub:[email protected]/tarball/selfdelete_vs2010.tar.gz


It contains 2 items, one is SelfDel32, this is a dynamic link library project, and the generated SelfDel32.dll is

that we need. Regardless of whether the program using this DLL is 32 or 64 bits, only the Win32\release SelfDel32.dll is required.

The Selfdel32\dist directory below is all the resources that other programs need to use.


The Selfdelapp project is an example 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, then close and you can 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.