Updated INVALID_HANDLE_VALUE for the sake of JRuby.