I have a program that gets every module loaded into a process and compares them with a database of forbidden DLL files, which works just fine, but it's too simple to circumvent (just change the name of dll file which you want to inject into the process). So I'm asking how can I distinguish DLL files. Is there any unique identifier which can be used in C#? Thanks.
EDIT: I forgot to mention that the program I'm creating checks dll files of another program not created by me which is written in C++.