Quote:
Originally Posted by sendersu
@HarrySpoofer
thanks for nice piece of work!
If you don't mind I"d provide some small feedback:
1) I'd do case insensitive comparison inside the GetProcessIdByName() routine
-> if (pe.szExeFile == processName)
2) compiler is unhappy on setting signed int to unsided dword;
warning C4245: 'initializing': conversion from 'int' to 'DWORD', signed/unsigned mismatch
do you know if Windows has got some define for wrong pid values?
eg smth like INVALID_HANDLE_VALUE
3) be honest, did you leave an Easter Egg in one routine?
kudos!
|
Thank for the feedback.
I made the changes you suggested and updated the attachment and the link.
BTW: I did not put an Easter egg in it, I added new icons, though.