Re: Cloning WinCE 5.0 component
- From: paolo patierno <paolopatierno@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Nov 2008 08:06:00 -0800
My target hardware doesn't have PS/2 connector, only USB. If a USB mass
storage is attached, I don't want notification. Suppose that I set NULL
parameter to RequestDeviceNotification, how can I intercept the mouse
connecting in my application ?
Thank you very much
"Paul G. Tobey [eMVP]" wrote:
There are also other reasons not to count on your mouse being connected via.
USB and generically looking for a particular class: mouse is PS/2, not USB,
for example, or Bluetooth, or serial. Your display driver doesn't have to
know, as long as you advertise the same interface for all (yes, I support
PS/2 mice on our devices, as well as USB).
Paul T.
"paolo patierno" <paolopatierno@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A70E23B0-0D25-42D6-9110-5DF2F7C5CA88@xxxxxxxxxxxxxxxx
The mouhid don't have a GUID (a IClass definition) and I want
notifications
only when a mouse is connected. If I use RequestDeviceNotifications and
pass
NULL for the first parameter, I will receive notification for all device
connected to my hardware platform. My goal is that when a mouse is
attached,
the cursor pointer is showed and when the mouse is deattached the cursor
is
hide. If I pass NULL to RequestDeviceNotifications, I don't know that a
mouse
is connected and it should be a USB mass storage !
Thanks
"Rob" wrote:
I would be very surprised if you need to clone the thing to achieve your
goal.
I'm sure you can get a notification if a HID device is added without any
modifiication.
I'm pretty sure you can narrow this down further.
With the notification comes some data, you can use this to get more
detail
about the device. It was some time ago I used this, so I have no details
for
you right now, I know i't a bit tricky/vague at first time use.
If all else fails : How about calling the driver that was loaded to get
more
info ?
(can you perform a call (or mis-use some call) on for example kbdhid.dll
to
determine what exactly was connected? kbd or mouse...)
Kind regards,
Rob.
"paolo patierno" wrote:
Thank you very much.......these article are very useful !
thanks
"Erwin Zwart" <"erwin AT GuruCE DOT COM" wrote:
http://www.guruce.com/blogpost/cloningpubliccodeanexample
and
http://www.guruce.com/blogpost/manualcloneofpubliccode
Good luck,
Erwin Zwart,
Check out my blog: http://GuruCE.com/blog
GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
paolo patierno schreef:
Hi,
what is the right way to clone a component in Platform Builder
(WinCE 5.0) ?
I must cloning mouhid.dll e I have to add a IClass (#define...etc
etc) to
it, because I want notified when a usb mouse is
attached/deattached.
Thanks,
PS. excuse for my english
- Follow-Ups:
- Re: Cloning WinCE 5.0 component
- From: Paul G. Tobey [eMVP]
- Re: Cloning WinCE 5.0 component
- References:
- Cloning WinCE 5.0 component
- From: paolo patierno
- Re: Cloning WinCE 5.0 component
- From: Erwin Zwart
- Re: Cloning WinCE 5.0 component
- From: paolo patierno
- Re: Cloning WinCE 5.0 component
- From: Rob
- Re: Cloning WinCE 5.0 component
- From: paolo patierno
- Re: Cloning WinCE 5.0 component
- From: Paul G. Tobey [eMVP]
- Cloning WinCE 5.0 component
- Prev by Date: Re: Cloning WinCE 5.0 component
- Next by Date: Re: How to show/hide cursor on attach/deattach usb mouse
- Previous by thread: Re: Cloning WinCE 5.0 component
- Next by thread: Re: Cloning WinCE 5.0 component
- Index(es):
Relevant Pages
|