joyent/libuv — comment on commit 31f94db78e9cf679969ab6d23765de5c101c2db4
File: src/win/process.c line 1111
By piscisaureus:

Why would always return EINVAL? I assume there may be other reasons a pid can't be opened (e.g. security).