Both window station visibility and session id are related to services being spawned in a non-interactive session, however the process window station can be manually set by the application while the session id can not be.
The enumerated display config should not change even in the case of a window station update, hence testing for SessionId == 0 is more reliable here.