There are two ways the app looks for updates: by process name or by process id.
By process name means it's looking for any updates of that process (initiated anywhere).
by process id means it's looking to get updates for a particular run (so that it can drive it to completion).

This function takes care of that querystring / querying logic.