Re: Virtual HID mouse driver with multi-monitor
- From: "Doron Holan [MSFT]" <doron.holan@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 May 2009 16:12:29 -0700
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
.
- References:
- Re: Virtual HID mouse driver with multi-monitor
- From: Ray Trent
- Re: Virtual HID mouse driver with multi-monitor
- From: Doron Holan [MSFT]
- Re: Virtual HID mouse driver with multi-monitor
- Prev by Date: Re: What is PRINTERBUSENUMERATOR? is it a virtual bus?
- Next by Date: Re: What is PRINTERBUSENUMERATOR? is it a virtual bus?
- Previous by thread: Re: Virtual HID mouse driver with multi-monitor
- Next by thread: Re: Bugcheck code D5 in USB driver - very peculiar!
- Index(es):
Relevant Pages
|