Re: Virtual HID mouse driver with multi-monitor

Tech-Archive recommends: Fix windows errors by optimizing your registry



you can createa new thread for each session and attach that thread to the new desktop

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"102" <102@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9806139C-78E7-4C05-8777-B8AFD61A1323@xxxxxxxxxxxxxxxx


"Doron Holan [MSFT]" wrote:

they could be using SendInput or some other user mode services to map to the
2ndary monitor, I don't know for sure

d

--

But when you log-off a user with session ID other than session ID of
that service (On Win XP), the service can't interact with that desktop
(log-on desktop) in that session, and also can't create another process
for that session. So how can i solve this problem ?


"Ray Trent" wrote:

I haven't tested this in a while, but according to the documentation,
there's a flag MOUSE_VIRTUAL_DESKTOP that is supposed to map the
absolute coordinate onto the whole virtual desktop (instead of the
default primary monitor). My memory that it worked could be flawed.

However... there's no way to find out the virtual desktop coordinates of
the secondary monitor from the kernel (that I know of), so you'd
probably need a user-mode helper program to at least figure out what
values you need to send and tell the driver using an IOCTL.

Also I believe those coordinates may be different from desktop to
desktop (due to different simultaneously-logged-on users' screen
resolution settings), which might make it quite tricky to figure out the
right values.

I seem to remember that the default Windows resolution setting applies
to all users (which seems like a kind of weird security hole), but I
also seem to remember that some vendors video driver control panels let
you control this more specifically.

I'm not 100% sure about any of these pronouncements, though.

Doron Holan [MSFT] wrote:
> ah that was it. you can't put absolute coordinates on anything but the
> primary
>


--
Ray


"Doron Holan [MSFT]" wrote:

I am pretty sure you are right about the MOUSE_VIRTUAL_DESKTOP, I have an
idea bouncing around in my head about how to use this flag to restrict an
absolute pointing device to a subsection of the entire virt desktop but have
never gotten around to it

d


Thanks a lot for all your helps.
But i don't know how to use that flag in this HID Mini driver. What should i
define in report descriptor to use that flag?

I have an additional question need your help :
- What will happen if i name the INF file longer than 8 characters?

-- Thong Nguyen

.



Relevant Pages

  • RE: Terminal server Fax driver...
    ... I wonder if your print driver is being run as admin (not ... It is a fax driver that installs just like a ... The browser page opens on the TS main console, and not in the session. ...
    (microsoft.public.windows.terminal_services)
  • RE: Terminal server Fax driver...
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... Since its just like a printer driver, I can't see that it would ... I'll check out the "session 0" thing. ... Install mode issue maybe? ...
    (microsoft.public.windows.terminal_services)
  • Re: wince serial driver
    ... serial driver by using Windows CE 5.0 XSCALE CSP driver. ... > data bits, no parity, 1 stop bit, no flow control. ... > soon as you have your terminal session set to odd parity and the session ... > the ARM based device set to no parity you will loose characters. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Display Device Mirror Driver - Build or Buy?
    ... mirror drivers receive DDI calls in a multicast ... > have access to the display regardless of the current session? ... > sessions since the mirror display driver gets "instanced" in to each new ...
    (microsoft.public.development.device.drivers)
  • Re: How do you figure out how much memory a class is using?
    ... > I just wrap them in an If statement and check the flag. ... In fact I normally encapsulate all access to Session, Viewstate, Cache, ... Session for the variable... ...
    (microsoft.public.dotnet.languages.vb)