This compatibility shim was written to try and fix applications which fail when trying to interact with services running ...

This compatibility shim was written to try and fix applications which fail when trying to interact with services running in different sessions. In LH, a user cannot log in as Session 0 (Global Session) as in XP. The apps which assumed to be running in Session 0 fail. It catches APIs which take terminal services name prefix(Global or Local) as there parameters. If there is a command line option given to the shim with object names specified, it tries to apply Global/Local prefix to the only specified object names, else it does to everyone.