Hi all,
how to make Blacklist programs
not by FindewindowA
for example i have notepad.exe running
so if i run an anthor program aaa.exe i want the notepad.exe close
even if the aaa.exe name has been changed
thanx
Printable View
Hi all,
how to make Blacklist programs
not by FindewindowA
for example i have notepad.exe running
so if i run an anthor program aaa.exe i want the notepad.exe close
even if the aaa.exe name has been changed
thanx
So, you want to be able to identify applications currently being run [i.e. are in the user's process list] by something more reliable than name.
Okay.
When obtaining the list of processes, you are able to iterate through them and get the originating file path of a single process. Use that to be able to identify any information you wish about that file [i.e. the binary application being run as a process].
For example, you could get the MD5 hash of that file and compare it to an array that is filled with blacklisted MD5 hashes [of applications]. This is only one of numerous types of file identifiers.
MD5 wont help ... it will cahnge when name changed
so i want anthor way to block the program function
Correct me if I'm wrong, but I was pretty sure that the MD5 hash of a file was on the file's data, not it's name.
MD5 change if u change the name...
Yes, but if you don't take an MD5 hash of the filename, but of its data, its actual content, it will be the same.
That code is C++ and does not 'come with a full project'. It's a function you implement in to your own project.Quote:
Originally Posted by Rules