Anonymous asked in Computers & InternetSoftware · 5 months ago

C++ Help Closing All Applications?

I want to close all open applications other than mine to prevent debuggers being open. How could i do this without closing my exe and windows applications.

1 Answer

  • Anonymous
    5 months ago

    In other words, you want to create a virus.

    I could dig around winapi to do this, but just use system("") to call taskkill and tasklist... do the rest of the work yourself.

    • Robert J
      Lv 7
      5 months agoReport

      ... And that (or any other similar action) will likely cause it to be flagged as malware by various antivirus/antimalware heuristics scans before it's ever executed.

Still have questions? Get answers by asking now.