Re: Cloning WinCE 5.0 component




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




.



Relevant Pages

  • Re: globalsat bu-353 usb gps using serial or ps2 port
    ... As it happens, coincidently or otherwise, both of my GPSr's have the same pinouts so I can use them interchangeably with the two DC-DC adapters and PDA connecting cables I have. ... The quality on some of the the accessory DC-DC adapter/PDA connector assemblies sold as accessories for the mouse style GPSr's is suspect. ... the data pair in the PS/2 connector is a RS-232 TXD/RXD pair. ... So if you have a DB-9P COM port (either hardware or through using a serial to USB adapter) if you connect your receiver's TXD and RXD to the DB-9P RXD and TXD pins it might work. ...
    (sci.geo.satellite-nav)
  • Re: PIC, Keyboard, and USART
    ... As I understand the connector from the schematic (no, ... I'm not talking about USB keyboards. ... And I think the PS/2 ... so that it plugs into a PS/2 mouse adapter hole on a IBM PC/AT system. ...
    (sci.electronics.basics)
  • Re: Cursor speed
    ... were actually dual-mode mice that supported either USB or PS/2 based on ... adapter actually able to support any PS/2 mouse, ... The first kind is the connector reshaping one, ...
    (comp.sys.mac.system)
  • Re: Mouse problem - Optical mouse with PS/2 - USB connector wont work
    ... PS-2 Connector. ... It does sound like the USB ... replaced it with another optical mouse, this time with a USB to PS/2 ... I brought a mouse home from work, again with the USB to PS/2 adapter, ...
    (microsoft.public.windowsxp.hardware)
  • Re: P5K Series - where to plug in the mouse?
    ... where under Back Panel Ports they say "1 x ... but nothing about a PS/2 mouse connector. ... Or a PS-2> USB converter. ...
    (alt.comp.periphs.mainboard.asus)