RE: Keyboard and mouse driver problem

The hardware IDs in the INF should be distinct, ID1 and ID2 like you
mention below is just fine. Make sure that the device class in
inf_for_mou.inf is the mouse and pointing device class.

The MouseIdentifier tag is purely informational, pick whatever value you
want, I don’t think any component actually looks at this value.

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: Deak Feri [mailto:xxxxx@ural2.hszk.bme.hu]
Sent: Wednesday, February 19, 2003 11:29 AM
To: xxxxx@lists.osr.com
Cc: Doron Holan
Subject: Keyboard and mouse driver problem

Hi Doron,

OK, I want enumerate two device stack.
So I have to create two INF file (one for the keyboard one for the
mouse).
So I have to run devcon twice:

devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1
devcon install inf_for_mou.inf ROOT\MY_DEVICE_ID2

Both inf_for_kb and inf_for_mou refer to mydriver.sys

Are these statements true?

MY_DEVICE_ID1 and MY_DEVICE_ID2 must be the same?

What is the MouseIdentifier tag in the _MOUSE_ATTRIBUTES structure?

BALLPOINT_I8042_HARDWARE i8042 port ballpoint mouse NO
BALLPOINT_SERIAL_HARDWARE Serial port ballpoint mouse NO
MOUSE_HID_HARDWARE HIDClass mouse NO???
MOUSE_I8042_HARDWARE i8042 port mouse NO
MOUSE_INPORT_HARDWARE Inport (bus) mouse I DON’T KNOW, WHAT IS INPORT
MOUSE
MOUSE_SERIAL_HARDWARE Serial port mouse NO

Thanks,

Ferenc

P.S. The Ctrl+Alt+Del problem was the bug of my HW. Thank you for your
help.

Hi Doron,
If devcon runs first (devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1)
then mydriver.sys is copied to the system32/drivers folder and mydriver.sys
starts work.
After that, devcon runs again (devcon install inf_for_mou.inf
ROOT\MY_DEVICE_ID2) and what happens?

Devcon detects, that no need to copy mydriver.sys again. My keyboard-driver
is not stopped just the new device stack is created. My driver (which has
been connected to the keyboard device stack earlier) is connected to the
mouse device stack (to th mouse class driver) (???)

I extend my keyboard driver only with the mouse IRPs (*) for getting an
integrated mouse-keyboard port driver like i8042prt. Is it enough?

(*) IOCTL_INTERNAL_MOUSE_CONNECT, IOCTL_INTERNAL_MOUSE_DISCONNECT,
IOCTL_MOUSE_QUERY_ATTRIBUTES, IOCTL_INTERNAL_I8042_HOOK_MOUSE

AddDevice is called twice, isn’t it? (for the keyboard and for the mouse).
How can you distinct the keyboard device stack and the mouse device stack in
the line “commonData->TopOfStack = IoAttachDeviceToDeviceStack(device,
PDO);”?

Thanks,
Ferenc

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, February 19, 2003 9:18 PM
Subject: [ntdev] RE: Keyboard and mouse driver problem

The hardware IDs in the INF should be distinct, ID1 and ID2 like you
mention below is just fine. Make sure that the device class in
inf_for_mou.inf is the mouse and pointing device class.

The MouseIdentifier tag is purely informational, pick whatever value you
want, I don’t think any component actually looks at this value.

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: Deak Feri [mailto:xxxxx@ural2.hszk.bme.hu]
Sent: Wednesday, February 19, 2003 11:29 AM
To: xxxxx@lists.osr.com
Cc: Doron Holan
Subject: Keyboard and mouse driver problem

Hi Doron,

OK, I want enumerate two device stack.
So I have to create two INF file (one for the keyboard one for the
mouse).
So I have to run devcon twice:

devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1
devcon install inf_for_mou.inf ROOT\MY_DEVICE_ID2

Both inf_for_kb and inf_for_mou refer to mydriver.sys

Are these statements true?

MY_DEVICE_ID1 and MY_DEVICE_ID2 must be the same?

What is the MouseIdentifier tag in the _MOUSE_ATTRIBUTES structure?

BALLPOINT_I8042_HARDWARE i8042 port ballpoint mouse NO
BALLPOINT_SERIAL_HARDWARE Serial port ballpoint mouse NO
MOUSE_HID_HARDWARE HIDClass mouse NO???
MOUSE_I8042_HARDWARE i8042 port mouse NO
MOUSE_INPORT_HARDWARE Inport (bus) mouse I DON’T KNOW, WHAT IS INPORT
MOUSE
MOUSE_SERIAL_HARDWARE Serial port mouse NO

Thanks,

Ferenc

P.S. The Ctrl+Alt+Del problem was the bug of my HW. Thank you for your
help.


You are currently subscribed to ntdev as: xxxxx@nct.hu
To unsubscribe send a blank email to xxxxx@lists.osr.com

You don’t need to handle IOCTL_INTERNAL_I8042_HOOK_MOUSE since that is specific to the i8042prt stack.

D

This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: Ferenc De?k [mailto:xxxxx@nct.hu]
Sent: Friday, February 21, 2003 7:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Keyboard and mouse driver problem

Hi Doron,
If devcon runs first (devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1)
then mydriver.sys is copied to the system32/drivers folder and mydriver.sys
starts work.
After that, devcon runs again (devcon install inf_for_mou.inf
ROOT\MY_DEVICE_ID2) and what happens?

Devcon detects, that no need to copy mydriver.sys again. My keyboard-driver
is not stopped just the new device stack is created. My driver (which has
been connected to the keyboard device stack earlier) is connected to the
mouse device stack (to th mouse class driver) (???)

I extend my keyboard driver only with the mouse IRPs (*) for getting an
integrated mouse-keyboard port driver like i8042prt. Is it enough?

(*) IOCTL_INTERNAL_MOUSE_CONNECT, IOCTL_INTERNAL_MOUSE_DISCONNECT,
IOCTL_MOUSE_QUERY_ATTRIBUTES, IOCTL_INTERNAL_I8042_HOOK_MOUSE

AddDevice is called twice, isn’t it? (for the keyboard and for the mouse).
How can you distinct the keyboard device stack and the mouse device stack in
the line “commonData->TopOfStack = IoAttachDeviceToDeviceStack(device,
PDO);”?

Thanks,
Ferenc

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, February 19, 2003 9:18 PM
Subject: [ntdev] RE: Keyboard and mouse driver problem

The hardware IDs in the INF should be distinct, ID1 and ID2 like you
mention below is just fine. Make sure that the device class in
inf_for_mou.inf is the mouse and pointing device class.

The MouseIdentifier tag is purely informational, pick whatever value you
want, I don’t think any component actually looks at this value.

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: Deak Feri [mailto:xxxxx@ural2.hszk.bme.hu]
Sent: Wednesday, February 19, 2003 11:29 AM
To: xxxxx@lists.osr.com
Cc: Doron Holan
Subject: Keyboard and mouse driver problem

Hi Doron,

OK, I want enumerate two device stack.
So I have to create two INF file (one for the keyboard one for the
mouse).
So I have to run devcon twice:

devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1
devcon install inf_for_mou.inf ROOT\MY_DEVICE_ID2

Both inf_for_kb and inf_for_mou refer to mydriver.sys

Are these statements true?

MY_DEVICE_ID1 and MY_DEVICE_ID2 must be the same?

What is the MouseIdentifier tag in the _MOUSE_ATTRIBUTES structure?

BALLPOINT_I8042_HARDWARE i8042 port ballpoint mouse NO
BALLPOINT_SERIAL_HARDWARE Serial port ballpoint mouse NO
MOUSE_HID_HARDWARE HIDClass mouse NO???
MOUSE_I8042_HARDWARE i8042 port mouse NO
MOUSE_INPORT_HARDWARE Inport (bus) mouse I DON’T KNOW, WHAT IS INPORT
MOUSE
MOUSE_SERIAL_HARDWARE Serial port mouse NO

Thanks,

Ferenc

P.S. The Ctrl+Alt+Del problem was the bug of my HW. Thank you for your
help.


You are currently subscribed to ntdev as: xxxxx@nct.hu
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Doron,
my keyboard and mouse driver works well. Thank you for your help. I have
only one problem:
The devcon application creates node as “unknown device” for the mouse and
the keyboard in the device manager (in XP). After I refresh the driver in
the device manager everithing is good. The devcon creates the good nodes in
w2k, and don’t have to refresh the driver. What happens in XP?

Thanks in advance,

Ferenc

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, February 26, 2003 7:36 PM
Subject: [ntdev] RE: Keyboard and mouse driver problem

You don’t need to handle IOCTL_INTERNAL_I8042_HOOK_MOUSE since that is
specific to the i8042prt stack.

D

This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: Ferenc Deák [mailto:xxxxx@nct.hu]
Sent: Friday, February 21, 2003 7:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Keyboard and mouse driver problem

Hi Doron,
If devcon runs first (devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1)
then mydriver.sys is copied to the system32/drivers folder and mydriver.sys
starts work.
After that, devcon runs again (devcon install inf_for_mou.inf
ROOT\MY_DEVICE_ID2) and what happens?

Devcon detects, that no need to copy mydriver.sys again. My keyboard-driver
is not stopped just the new device stack is created. My driver (which has
been connected to the keyboard device stack earlier) is connected to the
mouse device stack (to th mouse class driver) (???)

I extend my keyboard driver only with the mouse IRPs () for getting an
integrated mouse-keyboard port driver like i8042prt. Is it enough?

(
) IOCTL_INTERNAL_MOUSE_CONNECT, IOCTL_INTERNAL_MOUSE_DISCONNECT,
IOCTL_MOUSE_QUERY_ATTRIBUTES, IOCTL_INTERNAL_I8042_HOOK_MOUSE

AddDevice is called twice, isn’t it? (for the keyboard and for the mouse).
How can you distinct the keyboard device stack and the mouse device stack in
the line “commonData->TopOfStack = IoAttachDeviceToDeviceStack(device,
PDO);”?

Thanks,
Ferenc

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, February 19, 2003 9:18 PM
Subject: [ntdev] RE: Keyboard and mouse driver problem

The hardware IDs in the INF should be distinct, ID1 and ID2 like you
mention below is just fine. Make sure that the device class in
inf_for_mou.inf is the mouse and pointing device class.

The MouseIdentifier tag is purely informational, pick whatever value you
want, I don’t think any component actually looks at this value.

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: Deak Feri [mailto:xxxxx@ural2.hszk.bme.hu]
Sent: Wednesday, February 19, 2003 11:29 AM
To: xxxxx@lists.osr.com
Cc: Doron Holan
Subject: Keyboard and mouse driver problem

Hi Doron,

OK, I want enumerate two device stack.
So I have to create two INF file (one for the keyboard one for the
mouse).
So I have to run devcon twice:

devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1
devcon install inf_for_mou.inf ROOT\MY_DEVICE_ID2

Both inf_for_kb and inf_for_mou refer to mydriver.sys

Are these statements true?

MY_DEVICE_ID1 and MY_DEVICE_ID2 must be the same?

What is the MouseIdentifier tag in the _MOUSE_ATTRIBUTES structure?

BALLPOINT_I8042_HARDWARE i8042 port ballpoint mouse NO
BALLPOINT_SERIAL_HARDWARE Serial port ballpoint mouse NO
MOUSE_HID_HARDWARE HIDClass mouse NO???
MOUSE_I8042_HARDWARE i8042 port mouse NO
MOUSE_INPORT_HARDWARE Inport (bus) mouse I DON’T KNOW, WHAT IS INPORT
MOUSE
MOUSE_SERIAL_HARDWARE Serial port mouse NO

Thanks,

Ferenc

P.S. The Ctrl+Alt+Del problem was the bug of my HW. Thank you for your
help.


You are currently subscribed to ntdev as: xxxxx@nct.hu
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@nct.hu
To unsubscribe send a blank email to xxxxx@lists.osr.com

I am not sure what is going on in this case. I would suggest looking at setupapi.log (in %windir%) and seeing what setup has to say. If it is not verbose enough, you should crank up setup api debug logging, see

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/install/hh/install/troubleshoot_7s6f.asp

d

This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: Ferenc De?k [mailto:xxxxx@nct.hu]
Sent: Wednesday, March 19, 2003 4:03 AM
To: NT Developers Interest List
Cc: Doron Holan
Subject: RE: Keyboard and mouse driver problem

Hi Doron,
my keyboard and mouse driver works well. Thank you for your help. I have
only one problem:
The devcon application creates node as “unknown device” for the mouse and
the keyboard in the device manager (in XP). After I refresh the driver in
the device manager everithing is good. The devcon creates the good nodes in
w2k, and don’t have to refresh the driver. What happens in XP?

Thanks in advance,

Ferenc

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, February 26, 2003 7:36 PM
Subject: [ntdev] RE: Keyboard and mouse driver problem

You don’t need to handle IOCTL_INTERNAL_I8042_HOOK_MOUSE since that is
specific to the i8042prt stack.

D

This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: Ferenc De?k [mailto:xxxxx@nct.hu]
Sent: Friday, February 21, 2003 7:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Keyboard and mouse driver problem

Hi Doron,
If devcon runs first (devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1)
then mydriver.sys is copied to the system32/drivers folder and mydriver.sys
starts work.
After that, devcon runs again (devcon install inf_for_mou.inf
ROOT\MY_DEVICE_ID2) and what happens?

Devcon detects, that no need to copy mydriver.sys again. My keyboard-driver
is not stopped just the new device stack is created. My driver (which has
been connected to the keyboard device stack earlier) is connected to the
mouse device stack (to th mouse class driver) (???)

I extend my keyboard driver only with the mouse IRPs () for getting an
integrated mouse-keyboard port driver like i8042prt. Is it enough?

(
) IOCTL_INTERNAL_MOUSE_CONNECT, IOCTL_INTERNAL_MOUSE_DISCONNECT,
IOCTL_MOUSE_QUERY_ATTRIBUTES, IOCTL_INTERNAL_I8042_HOOK_MOUSE

AddDevice is called twice, isn’t it? (for the keyboard and for the mouse).
How can you distinct the keyboard device stack and the mouse device stack in
the line “commonData->TopOfStack = IoAttachDeviceToDeviceStack(device,
PDO);”?

Thanks,
Ferenc

----- Original Message -----
From: “Doron Holan”
To: “NT Developers Interest List”
Sent: Wednesday, February 19, 2003 9:18 PM
Subject: [ntdev] RE: Keyboard and mouse driver problem

The hardware IDs in the INF should be distinct, ID1 and ID2 like you
mention below is just fine. Make sure that the device class in
inf_for_mou.inf is the mouse and pointing device class.

The MouseIdentifier tag is purely informational, pick whatever value you
want, I don’t think any component actually looks at this value.

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: Deak Feri [mailto:xxxxx@ural2.hszk.bme.hu]
Sent: Wednesday, February 19, 2003 11:29 AM
To: xxxxx@lists.osr.com
Cc: Doron Holan
Subject: Keyboard and mouse driver problem

Hi Doron,

OK, I want enumerate two device stack.
So I have to create two INF file (one for the keyboard one for the
mouse).
So I have to run devcon twice:

devcon install inf_for_kb.inf ROOT\MY_DEVICE_ID1
devcon install inf_for_mou.inf ROOT\MY_DEVICE_ID2

Both inf_for_kb and inf_for_mou refer to mydriver.sys

Are these statements true?

MY_DEVICE_ID1 and MY_DEVICE_ID2 must be the same?

What is the MouseIdentifier tag in the _MOUSE_ATTRIBUTES structure?

BALLPOINT_I8042_HARDWARE i8042 port ballpoint mouse NO
BALLPOINT_SERIAL_HARDWARE Serial port ballpoint mouse NO
MOUSE_HID_HARDWARE HIDClass mouse NO???
MOUSE_I8042_HARDWARE i8042 port mouse NO
MOUSE_INPORT_HARDWARE Inport (bus) mouse I DON’T KNOW, WHAT IS INPORT
MOUSE
MOUSE_SERIAL_HARDWARE Serial port mouse NO

Thanks,

Ferenc

P.S. The Ctrl+Alt+Del problem was the bug of my HW. Thank you for your
help.


You are currently subscribed to ntdev as: xxxxx@nct.hu
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@nct.hu
To unsubscribe send a blank email to xxxxx@lists.osr.com