How to block a program from running using winforms? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to block a program from running using winforms?

trickx0729trickx0729 Posts: 6Member
I want to block a certain program from running like "Keyboard Collector", a key logger which cannot be seen running in the task manager but active and running, or any kinds of program similar to keyboard collector.

How to code this kind of function? If its OK, may you post the solution in this thread? Thanks in advance :D

Comments

  • DataDinkDataDink Posts: 135Member
    Everything has a visible process somewhere - even if it's being hosted by another process i.e. svchost.

    What you need to do is find out where exactly the keylogger is located on disk - or figure out how it is starting up.

    If it has installed itself as a service then you will need to stop the service that is running it - disable the service or simply delete the assembly.

    If it is starting with the registry start up software you need to go into the console and start up "MSCONFIG" in order to edit the start-up keys.

    Otherwise it may be in the user start-up folder - if it's there just delete it.
  • trickx0729trickx0729 Posts: 6Member
    When I install Keyboard Collector, it resides in the Program Files,.(It is only a trial version though)

    I want to code an application in C# where it can negate the Keyboard Collector from running without deleting it. It will only show a Message Box saying that Keyboard Collector has been stopped at the same time it is blocking the said program. Like what anti-virus are doing..maybe
  • DataDinkDataDink Posts: 135Member
    To get the kind of functionality that anti-virus software is using I believe you are going to need to write some kind of service.

    I won't be able to help you out with that but suggest doing some research online about how anti-virus software works. - this is not common functionality.
Sign In or Register to comment.