1.

Solve : Visual Basic Code Required?

Answer»

Hi dear Experts!!!

sir i want to KNOW that how i stop a program by programming that is

running in memory. Suppose a file abc.exe is running in memory. i want to

end it with programming. How can i do that.

Second thing is if abc.exe get executed 2 times, then 2nd time it end it self

form comming into memory how can i do that....i think if statment will

be applied in this case.......

Example shoud be in Visual Basic 5

Thankx in Advance

Dear Usman,
If you know the actual name of the file you want to stop from running then you can PUT it in the blacklist of your antivirus. As FAR as programming is concerned, I can't help you !
Regards,First off- lose the poll.


secondly- ending a process will require a process handle and a call to exitProcess(). how do you get the process handle? Using either the toolhelp API to iterate through a snapshot, or PSAPI and EnumProcessModules() ROUTINE. You'll need to also create a callback routine in a standard module.

your second problem will require the usage of the same API to query wether the appropriate EXECUTABLE is in memory.


Quote from: usman.sialkot on October 22, 2008, 09:41:17 PM

i think if statment will

be applied in this case.......


The solution is not for beginners. It will use loops, API declarations, and callbacks. the If statement usage goes without saying.Yes u r rite.

Can i have the source code of it please.

want to end abc.exe running in memory.

it will take some time

I will try and then tell u what happened.........




Discussion

No Comment Found