Solved

Identity of programs in the background (winxp)

Posted on 2008-06-22
5
287 Views
Last Modified: 2012-05-05
I noticed i can rename almost any programs' name & run it. When i view the processes in TaskManager  i can see the program name on the list of processes running.

I can rename notepad.exe to svchost.exe. if i am writing anti-hacking software in vb or delphi - how can i know which program is which -- is there any unique handle i can use?
0
Comment
Question by:eriklee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 7

Expert Comment

by:YourReference
ID: 21841290
One way is to record the PID of the process running in a File or Registry.  If you rename norepad.exe to svchost.exe, when you launch it, record the PID of svchost.exe.

When you see PID 1111 (or whatever it ends up to be) you know it's your program
0
 

Author Comment

by:eriklee
ID: 21841771
the PID changes everytime you start the machine or the program.

notepad.exe can be 112 this time but can be 345 the next. there is not fixed unique PID associated with notepad.exe.
0
 
LVL 13

Expert Comment

by:ThievingSix
ID: 21842166
Every time you rename it, re-record the PID.
0
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 100 total points
ID: 21842256
This is done by the code in the application itself for example and application that would want to stop multiple instances of an application would create a mutex object with a unique mutex name then check if the unique mutex name is already active and act accordingly. Applications like notepad don't have these features.
0
 

Author Comment

by:eriklee
ID: 21842836
http://www.osix.net/modules/article/?id=6


found something abt mutex..
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

615 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