Should probably be `pid_t pid = args[0]->Int32Value()`.  I don't think Windows has a pid_t type so... int32_t?