Re: Cloning WinCE 5.0 component

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




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



.



Relevant Pages

  • Re: Cloning WinCE 5.0 component
    ... My target hardware doesn't have PS/2 connector, only USB. ... I will receive notification for all device ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Cloning WinCE 5.0 component
    ... there is no USB keyboard connected. ... If I connect a USB mouse I get notification for DEVCLASS_STREAM_GUID. ... Michael DOT Reim AT helmut-fischer DOT de ...
    (microsoft.public.windowsce.platbuilder)
  • USB RNDIS and no Device Notifications
    ... Notification queue to "listen to" all the devices that get plugged/ ... removed from the machine, it's working great for USB printers, USB / ... receive any notification in my listening queue. ... usual notifications system when creating the network interface. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB Device Interface
    ... is absolutely no reason to play with the registry. ... I also need other's help on this because i dont have all kinds of USB flash storage device to test my service application. ... or ur service app will have DBT_DEVICEARRIVAL notification. ... to produce the drive letter assignment. ...
    (microsoft.public.development.device.drivers)
  • Re: Cloning WinCE 5.0 component
    ... Excuse me Rob, ... I will receive notification for all device ... is connected and it should be a USB mass storage! ... How about calling the driver that was loaded to get more ...
    (microsoft.public.windowsce.platbuilder)