Re: Cloning WinCE 5.0 component

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
    ... generated by RequestDeviceNotifications. ... connecting in my application? ... as well as USB). ... I will receive notification for all ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Cloning WinCE 5.0 component
    ... GUID for mouhid to receive notification. ... "Valter Minute" wrote: ... I must cloning mouhid.dll e I have to add a IClass ... RequestDeviceNotifications and avoid any clone. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Cloning WinCE 5.0 component
    ... "Rob" wrote: ... "paolo patierno" wrote: ... I will receive notification for all device ... I know i't a bit tricky/vague at first time use. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Cloning WinCE 5.0 component
    ... "paolo patierno" wrote: ... I will receive notification for all device ... is connected and it should be a USB mass storage! ... I know i't a bit tricky/vague at first time use. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Cloning WinCE 5.0 component
    ... What I mean is that you can catch ANY HID notification, ... the notification Handler what's actually been connected, ... "paolo patierno" wrote: ... I know i't a bit tricky/vague at first time use. ...
    (microsoft.public.windowsce.platbuilder)