Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how can you stop the proceses runin in the comp or task mgr ..

how can you stop the proceses runin in the comp or task mgr ..

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminhelpquestion
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K kingori

    Hi every one; am tryin to make an antivirus, and i am having a problem tryin to figure out how i can stop a process that is running, i.e how can i make the AV to stop a virus process thats running, Also if you know how i can clean the registry with the AV you can assist me. THANX in advance

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #2

    Have a look at TerminateProcess [^]. There are security issues to overcome though. Good luck. :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    [my articles]

    In testa che avete, signor di Ceprano?

    H 1 Reply Last reply
    0
    • CPalliniC CPallini

      Have a look at TerminateProcess [^]. There are security issues to overcome though. Good luck. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      [my articles]

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #3

      I think generaly its better you didnt use of TerminaterProcess.

      CPalliniC 1 Reply Last reply
      0
      • H Hamid Taebi

        I think generaly its better you didnt use of TerminaterProcess.

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #4

        Even with viruses? Oh Hamid, I know, you are a really kind guy :-D

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        [my articles]

        In testa che avete, signor di Ceprano?

        H 1 Reply Last reply
        0
        • CPalliniC CPallini

          Even with viruses? Oh Hamid, I know, you are a really kind guy :-D

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          [my articles]

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #5

          I dont think we can success with terminateProcess for kill viruses of memory. ;P

          CPalliniC 1 Reply Last reply
          0
          • H Hamid Taebi

            I dont think we can success with terminateProcess for kill viruses of memory. ;P

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #6

            Do you suggest an hammer? TerminateProcess in fact is quite effective and rude on killing processes.

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            [my articles]

            In testa che avete, signor di Ceprano?

            H 1 Reply Last reply
            0
            • CPalliniC CPallini

              Do you suggest an hammer? TerminateProcess in fact is quite effective and rude on killing processes.

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              [my articles]

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #7

              Some years ago I decided to make an antivirus so I said I need to TerminateProcess and TerminateThread,SuspendThread,ResumeThread,.. and started but for some processes when I used of TerminateProcess it kill each process immediatly but I got repeated runtime errors or about TerminateThread you can use of this function for kill some threads of a process but it produces serious errors.

              CPalliniC 1 Reply Last reply
              0
              • H Hamid Taebi

                Some years ago I decided to make an antivirus so I said I need to TerminateProcess and TerminateThread,SuspendThread,ResumeThread,.. and started but for some processes when I used of TerminateProcess it kill each process immediatly but I got repeated runtime errors or about TerminateThread you can use of this function for kill some threads of a process but it produces serious errors.

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #8

                The hammer is the alternative to TerminateProcess: you can't expect the virus terminating gracefully whenever you ask it. BTW, you don't need TerminateThread stuff. :-D

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                [my articles]

                In testa che avete, signor di Ceprano?

                H 1 Reply Last reply
                0
                • CPalliniC CPallini

                  The hammer is the alternative to TerminateProcess: you can't expect the virus terminating gracefully whenever you ask it. BTW, you don't need TerminateThread stuff. :-D

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  [my articles]

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #9

                  TerminateThread was an example not for this object. :-D

                  CPalliniC 1 Reply Last reply
                  0
                  • H Hamid Taebi

                    TerminateThread was an example not for this object. :-D

                    CPalliniC Offline
                    CPalliniC Offline
                    CPallini
                    wrote on last edited by
                    #10

                    TerminateThread is usually bad. TermintateProcess is almost always bad. On the other hand viruses deserve hammers and TerminateProcess is your software hammer. :laugh:

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    [my articles]

                    modified on Friday, February 01, 2008 9:38:34 AM

                    In testa che avete, signor di Ceprano?

                    H 1 Reply Last reply
                    0
                    • CPalliniC CPallini

                      TerminateThread is usually bad. TermintateProcess is almost always bad. On the other hand viruses deserve hammers and TerminateProcess is your software hammer. :laugh:

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      [my articles]

                      modified on Friday, February 01, 2008 9:38:34 AM

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #11

                      Yeah thats right. :)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups