I am writing a method that takes PID as parameter. Can it be a negative number on Windows? If it can't be I will add a negative check to my method. But I couldn't find information on the internet.
We only know they cannot be 0 or -1 (see Invalid thread and process IDs).
So don't depend on them being positive (or, multiples of four).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With