Registry and Events:
request list of virtual desktops
register for event notifications by type
register for device events
synthesize keyboard and mouse events