A mechanism for detecting events generated from a device in communication
with a client system and the re-direction of those events to a server
system over a network using a presentation-level protocol is disclosed.
Plug and play events are detected at the client system, bound to a
virtual connection for a user session, and re-directed for handling to a
server-based system using the presentation-level protocol. The
server-based system maps the device to the user session. Applications
which have registered a callback with the session are informed and
generate an appropriate message which is transmitted to the device in
communication with the client system via a specified virtual
communication connection in the user session.