Solved

ASM Process Killer

Posted on 2004-08-13
3
313 Views
Last Modified: 2008-02-26
hello i need a code or full code Killing Procces For Example

when i build the code and run it
it will kill hello.exe  

cuz i need the code to make it killer process program
i need the code without menu like file and and ..
thx

Note : i don't need the code that writing with C or C++ Programming Language cuz im learning it and i have done one

i need the code that wrting with Assembly Programming Language

Big Thanks :)
0
Comment
Question by:hanagoku
3 Comments
 
LVL 1

Accepted Solution

by:
aneim earned 60 total points
ID: 11857565
Hi HanaGoku,

this code snipet just close the Windows Calculator and exit. Its look by the WindowTitle.
Firts Get the windowhandle with FindWindow and them Send a close command.


Hope it Helps.
I used MASM to do this app.

------------------------------------- BEGIN SNIPET
; #########################################################################
      .386
      .model flat, stdcall
      option casemap :none   ; case sensitive
; #########################################################################

      include \masm32\include\windows.inc
      include \masm32\include\user32.inc
      include \masm32\include\kernel32.inc

      includelib \masm32\lib\user32.lib
      includelib \masm32\lib\kernel32.lib

; #########################################################################
    .data

WindowTitle db "Calculator",0
    .code

start:
        invoke FindWindowA, 0, ADDR WindowTitle
        invoke SendMessageTimeout, EAX, WM_CLOSE, 0, 0, SMTO_ABORTIFHUNG or SMTO_NORMAL, 5000, 0
        invoke ExitProcess,0

; #########################################################################

end start
------------------------------------- END SNIPET
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now