Detecting bus & mouse type and disable the ps/2 mouse.

Hi all,

I am trying to develope win2k driver. I wish to detect –

  1. if my pc has MCA or EISA bus.
  2. if MCA system, check if ps/2 mouse is present & enabled.
  3. if enabled, disable it,(if possible all auxillary ports) &
    again enable it,after driver completes its specified functioning.

I DONOT want to control the mouse/modify its events.
For my application, it is acceptable that till driver completes
its specified function, no other application can have mouse
inputs.

Can anybody help me in this?

Thanks in advance,
Sundeep

The ps/2 driver does not allow disabled w/out a reboot, so even if you found the ps/2 mouse, you could not disable and reenable it (btw, there is no way documented way to find out if the mouse on the system is ps/2 or not).? If you are trying to write to the ps/2 ports (0x60 and x064), then perhaps you should consider installing a device upper filter on the keyboard and / or mouse ps/2 devices; see the moufilr and kbdfiltr examples in the DDK for a starting point.
?
D

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

?
-----Original Message-----
From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
Sent: Friday, October 25, 2002 6:32 AM
To: NT Developers Interest List
Subject: [ntdev] Detecting bus & mouse type and disable the ps/2 mouse.
?
Hi all,
?
I am trying to develope win2k driver. I wish to detect –
1.?if my pc has MCA or EISA? bus.
2. if MCA system, check if ps/2 mouse is present & enabled.
3. if enabled, disable it,(if possible?all?auxillary ports) &
? ?again enable it,after driver completes its specified functioning.
?
I DONOT want to control the mouse/modify its events.
For my application, it is acceptable that till driver completes
its specified function, no other application can have mouse
inputs.
?
Can anybody help me in this?
?
Thanks in advance,
Sundeep
?

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

Thanks Doron.

I was tempted to access 8042 ports direcly.But, I agree that safest way
is through filter driver.

Just out of curiosity I have one question. If I read these ports, when OBF
or IBF
are not set, then I think ISR for kb/mouse won’t miss the inputs. I mean
reading
data will not affect IBF/OBF flags and OS will not face any trouble.
My driver will still get data as unless next data is written, 60h will not
get refreshed. It is likely that drv will miss some kb hits, but that is ok.

Sundeep

----- Original Message -----
From: Doron Holan
To: NT Developers Interest List
Sent: Saturday, October 26, 2002 6:42 PM
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2 mouse.

> The ps/2 driver does not allow disabled w/out a reboot, so even if you
found the ps/2 mouse, you could not disable and reenable it (btw, there is
no way documented way to find out if the mouse on the system is ps/2 or
not). If you are trying to write to the ps/2 ports (0x60 and x064), then
perhaps you should consider installing a device upper filter on the keyboard
and / or mouse ps/2 devices; see the moufilr and kbdfiltr examples in the
DDK for a starting point.
>
> D
>
> This posting is provided “AS IS” with no warranties, and confers no
rights.
>
>
> -----Original Message-----
> From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> Sent: Friday, October 25, 2002 6:32 AM
> To: NT Developers Interest List
> Subject: [ntdev] Detecting bus & mouse type and disable the ps/2 mouse.
>
> Hi all,
>
> I am trying to develope win2k driver. I wish to detect –
> 1. if my pc has MCA or EISA bus.
> 2. if MCA system, check if ps/2 mouse is present & enabled.
> 3. if enabled, disable it,(if possible all auxillary ports) &
> again enable it,after driver completes its specified functioning.
>
> I DONOT want to control the mouse/modify its events.
> For my application, it is acceptable that till driver completes
> its specified function, no other application can have mouse
> inputs.
>
> Can anybody help me in this?
>
> Thanks in advance,
> Sundeep
>
> —
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
> To unsubscribe send a blank email to %%email.unsub%%

Which bits are IBF / OBF ? do you mean input buffer full and output
buffer full? If so, are you referring to the kbd or the mouse when
talking about these bits? Any unsynchronized reads can easily race with
8042 … for instance, if the we are writing the typematic or LEDs to
the device at the time, you could eat the ACK from underneath i8042prt.
Also, user’s get quite ticked off when a keystroke is lost, just imagine
the frustration the user would experience when random keys don’t work
one time, esp if they are pressing C+A+D or typing their password when
they are logging in.

Why do you need to read from these ports in the first place? Do you
have an auxiliary device other then a keyboard or mouse attached to the
ps/2 ports?

D

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

-----Original Message-----
From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
Sent: Tuesday, October 29, 2002 7:39 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

Thanks Doron.

I was tempted to access 8042 ports direcly.But, I agree that safest way
is through filter driver.

Just out of curiosity I have one question. If I read these ports, when
OBF
or IBF
are not set, then I think ISR for kb/mouse won’t miss the inputs. I mean
reading
data will not affect IBF/OBF flags and OS will not face any trouble.
My driver will still get data as unless next data is written, 60h will
not
get refreshed. It is likely that drv will miss some kb hits, but that is
ok.

Sundeep

----- Original Message -----
From: Doron Holan
To: NT Developers Interest List
Sent: Saturday, October 26, 2002 6:42 PM
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

> The ps/2 driver does not allow disabled w/out a reboot, so even if you
found the ps/2 mouse, you could not disable and reenable it (btw, there
is
no way documented way to find out if the mouse on the system is ps/2 or
not). If you are trying to write to the ps/2 ports (0x60 and x064), then
perhaps you should consider installing a device upper filter on the
keyboard
and / or mouse ps/2 devices; see the moufilr and kbdfiltr examples in
the
DDK for a starting point.
>
> D
>
> This posting is provided “AS IS” with no warranties, and confers no
rights.
>
>
> -----Original Message-----
> From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> Sent: Friday, October 25, 2002 6:32 AM
> To: NT Developers Interest List
> Subject: [ntdev] Detecting bus & mouse type and disable the ps/2
mouse.
>
> Hi all,
>
> I am trying to develope win2k driver. I wish to detect –
> 1. if my pc has MCA or EISA bus.
> 2. if MCA system, check if ps/2 mouse is present & enabled.
> 3. if enabled, disable it,(if possible all auxillary ports) &
> again enable it,after driver completes its specified functioning.
>
> I DONOT want to control the mouse/modify its events.
> For my application, it is acceptable that till driver completes
> its specified function, no other application can have mouse
> inputs.
>
> Can anybody help me in this?
>
> Thanks in advance,
> Sundeep
>
> —
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
> To unsubscribe send a blank email to %%email.unsub%%


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

just to add the other nightmare problem that reading these ports could
cause - there is no way to determine whether a byte read from the mouse
over i8042 is the beginning or the middle of a packet. Swallow a byte
of the packet and suddenly your mouse will start flying all over the
screen because the mouse and the driver are out of synch on the data
stream.

i8042prt has some code to detect and rectify this situation but it
usually can’t kick in until the mouse has flown aroudn the screen
randomly for a while, really pissing off the customer in the process.

-p

-----Original Message-----
From: Doron Holan
Sent: Tuesday, October 29, 2002 7:44 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

Which bits are IBF / OBF ? do you mean input buffer full and output
buffer full? If so, are you referring to the kbd or the mouse when
talking about these bits? Any unsynchronized reads can easily race with
8042 … for instance, if the we are writing the typematic or LEDs to
the device at the time, you could eat the ACK from underneath i8042prt.
Also, user’s get quite ticked off when a keystroke is lost, just imagine
the frustration the user would experience when random keys don’t work
one time, esp if they are pressing C+A+D or typing their password when
they are logging in.

Why do you need to read from these ports in the first place? Do you
have an auxiliary device other then a keyboard or mouse attached to the
ps/2 ports?

D

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

-----Original Message-----
From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
Sent: Tuesday, October 29, 2002 7:39 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

Thanks Doron.

I was tempted to access 8042 ports direcly.But, I agree that safest way
is through filter driver.

Just out of curiosity I have one question. If I read these ports, when
OBF or IBF are not set, then I think ISR for kb/mouse won’t miss the
inputs. I mean reading data will not affect IBF/OBF flags and OS will
not face any trouble. My driver will still get data as unless next data
is written, 60h will not get refreshed. It is likely that drv will miss
some kb hits, but that is ok.

Sundeep

----- Original Message -----
From: Doron Holan
To: NT Developers Interest List
Sent: Saturday, October 26, 2002 6:42 PM
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

> The ps/2 driver does not allow disabled w/out a reboot, so even if you
found the ps/2 mouse, you could not disable and reenable it (btw, there
is no way documented way to find out if the mouse on the system is ps/2
or not). If you are trying to write to the ps/2 ports (0x60 and x064),
then perhaps you should consider installing a device upper filter on the
keyboard and / or mouse ps/2 devices; see the moufilr and kbdfiltr
examples in the DDK for a starting point.
>
> D
>
> This posting is provided “AS IS” with no warranties, and confers no
rights.
>
>
> -----Original Message-----
> From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> Sent: Friday, October 25, 2002 6:32 AM
> To: NT Developers Interest List
> Subject: [ntdev] Detecting bus & mouse type and disable the ps/2
mouse.
>
> Hi all,
>
> I am trying to develope win2k driver. I wish to detect –
> 1. if my pc has MCA or EISA bus.
> 2. if MCA system, check if ps/2 mouse is present & enabled. 3. if
> enabled, disable it,(if possible all auxillary ports) & again enable
> it,after driver completes its specified functioning.
>
> I DONOT want to control the mouse/modify its events.
> For my application, it is acceptable that till driver completes its
> specified function, no other application can have mouse inputs.
>
> Can anybody help me in this?
>
> Thanks in advance,
> Sundeep
>
> —
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com

> To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net

> To unsubscribe send a blank email to %%email.unsub%%


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


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%

Hi Doron,

Here are my responses.

Which bits are IBF / OBF ? do you mean input buffer full and output
buffer full? If so, are you referring to the kbd or the mouse when
talking about these bits? Any unsynchronized reads can easily race with

>>>yes. I am talking about kbd. I want to ignore mouse events.
My idea is by looking at the bit5, I can detect auxillary input while
reading
data when IBF/OBF are clear ,will not interfere with ISR. Also, using status
buffer, command and data can be differentiated. This will prevent
malfunctioning
due to eating of intermediate command bytes.

8042 … for instance, if the we are writing the typematic or LEDs to
the device at the time, you could eat the ACK from underneath i8042prt.
Also, user’s get quite ticked off when a keystroke is lost, just imagine
the frustration the user would experience when random keys don’t work
one time, esp if they are pressing C+A+D or typing their password when
they are logging in.

>>>> Since, data is read when IBF/OBF bits are clear, it will not
interfere with ISRs and OS can get all the keystrokes. But, it is
my driver which is likely to lose some keystrokes.

Why do you need to read from these ports in the first place? Do you
have an auxiliary device other then a keyboard or mouse attached to the
ps/2 ports?

>>>>I suppose reading through filter driver will be time consuming,
especially for the
loops where polling time is critical. So, I am thinking of the optimisation.

Do u agree with these ?

Sundeep

-----Original Message-----
From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
Sent: Tuesday, October 29, 2002 7:39 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

Thanks Doron.

I was tempted to access 8042 ports direcly.But, I agree that safest way
is through filter driver.

Just out of curiosity I have one question. If I read these ports, when
OBF
or IBF
are not set, then I think ISR for kb/mouse won’t miss the inputs. I mean
reading
data will not affect IBF/OBF flags and OS will not face any trouble.
My driver will still get data as unless next data is written, 60h will
not
get refreshed. It is likely that drv will miss some kb hits, but that is
ok.

Sundeep

----- Original Message -----
From: Doron Holan
> To: NT Developers Interest List
> Sent: Saturday, October 26, 2002 6:42 PM
> Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
> mouse.
>
>
> > The ps/2 driver does not allow disabled w/out a reboot, so even if you
> found the ps/2 mouse, you could not disable and reenable it (btw, there
> is
> no way documented way to find out if the mouse on the system is ps/2 or
> not). If you are trying to write to the ps/2 ports (0x60 and x064), then
> perhaps you should consider installing a device upper filter on the
> keyboard
> and / or mouse ps/2 devices; see the moufilr and kbdfiltr examples in
> the
> DDK for a starting point.
> >
> > D
> >
> > This posting is provided “AS IS” with no warranties, and confers no
> rights.
> >
> >
> > -----Original Message-----
> > From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> > Sent: Friday, October 25, 2002 6:32 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] Detecting bus & mouse type and disable the ps/2
> mouse.
> >
> > Hi all,
> >
> > I am trying to develope win2k driver. I wish to detect –
> > 1. if my pc has MCA or EISA bus.
> > 2. if MCA system, check if ps/2 mouse is present & enabled.
> > 3. if enabled, disable it,(if possible all auxillary ports) &
> > again enable it,after driver completes its specified functioning.
> >
> > I DONOT want to control the mouse/modify its events.
> > For my application, it is acceptable that till driver completes
> > its specified function, no other application can have mouse
> > inputs.
> >
> > Can anybody help me in this?
> >
> > Thanks in advance,
> > Sundeep
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> > To unsubscribe send a blank email to %%email.unsub%%
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
> > To unsubscribe send a blank email to %%email.unsub%%
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
> To unsubscribe send a blank email to %%email.unsub%%

Yes. Same scenario made me think of the alternative solution.

Sundeep

----- Original Message -----
From: Peter Wieland
To: NT Developers Interest List
Sent: Wednesday, October 30, 2002 11:25 PM
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2 mouse.

> just to add the other nightmare problem that reading these ports could
> cause - there is no way to determine whether a byte read from the mouse
> over i8042 is the beginning or the middle of a packet. Swallow a byte
> of the packet and suddenly your mouse will start flying all over the
> screen because the mouse and the driver are out of synch on the data
> stream.
>
> i8042prt has some code to detect and rectify this situation but it
> usually can’t kick in until the mouse has flown aroudn the screen
> randomly for a while, really pissing off the customer in the process.
>
> -p
>
> -----Original Message-----
> From: Doron Holan
> Sent: Tuesday, October 29, 2002 7:44 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
> mouse.
>
>
> Which bits are IBF / OBF ? do you mean input buffer full and output
> buffer full? If so, are you referring to the kbd or the mouse when
> talking about these bits? Any unsynchronized reads can easily race with
> 8042 … for instance, if the we are writing the typematic or LEDs to
> the device at the time, you could eat the ACK from underneath i8042prt.
> Also, user’s get quite ticked off when a keystroke is lost, just imagine
> the frustration the user would experience when random keys don’t work
> one time, esp if they are pressing C+A+D or typing their password when
> they are logging in.
>
> Why do you need to read from these ports in the first place? Do you
> have an auxiliary device other then a keyboard or mouse attached to the
> ps/2 ports?
>
> D
>
> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>
> -----Original Message-----
> From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> Sent: Tuesday, October 29, 2002 7:39 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
> mouse.
>
> Thanks Doron.
>
> I was tempted to access 8042 ports direcly.But, I agree that safest way
> is through filter driver.
>
> Just out of curiosity I have one question. If I read these ports, when
> OBF or IBF are not set, then I think ISR for kb/mouse won’t miss the
> inputs. I mean reading data will not affect IBF/OBF flags and OS will
> not face any trouble. My driver will still get data as unless next data
> is written, 60h will not get refreshed. It is likely that drv will miss
> some kb hits, but that is ok.
>
> Sundeep
>
> ----- Original Message -----
> From: Doron Holan
> To: NT Developers Interest List
> Sent: Saturday, October 26, 2002 6:42 PM
> Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
> mouse.
>
>
> > The ps/2 driver does not allow disabled w/out a reboot, so even if you
> found the ps/2 mouse, you could not disable and reenable it (btw, there
> is no way documented way to find out if the mouse on the system is ps/2
> or not). If you are trying to write to the ps/2 ports (0x60 and x064),
> then perhaps you should consider installing a device upper filter on the
> keyboard and / or mouse ps/2 devices; see the moufilr and kbdfiltr
> examples in the DDK for a starting point.
> >
> > D
> >
> > This posting is provided “AS IS” with no warranties, and confers no
> rights.
> >
> >
> > -----Original Message-----
> > From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> > Sent: Friday, October 25, 2002 6:32 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] Detecting bus & mouse type and disable the ps/2
> mouse.
> >
> > Hi all,
> >
> > I am trying to develope win2k driver. I wish to detect –
> > 1. if my pc has MCA or EISA bus.
> > 2. if MCA system, check if ps/2 mouse is present & enabled. 3. if
> > enabled, disable it,(if possible all auxillary ports) & again enable
> > it,after driver completes its specified functioning.
> >
> > I DONOT want to control the mouse/modify its events.
> > For my application, it is acceptable that till driver completes its
> > specified function, no other application can have mouse inputs.
> >
> > Can anybody help me in this?
> >
> > Thanks in advance,
> > Sundeep
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>
> > To unsubscribe send a blank email to %%email.unsub%%
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
>
> > To unsubscribe send a blank email to %%email.unsub%%
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com To
> unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
> To unsubscribe send a blank email to %%email.unsub%%

  1. you violating pnp tennents by touching hardware that is not yours
  2. ps/2 controllers have been shown to be really picky and 2
    unsychronized entities touching the same hardware is a complete recipe
    for disaster
  3. if you are polling bit5, I can come in in between your poll and you
    wouldn’t notice. Also, you might read from the ports and eat my data
    accidentally
  4. if at all possible, get out of the business of reading the ps/2
    ports at all, move your hardware to some other more extensible bus. If
    you can’t, I would recommend writing a complete replacement for i8042prt
    as a last resort (call it something else) and install your driver on the
    devices. This can’t be logoed at all, but it would save you many a
    headache. Complete i8042prt source is in the ddk under pnpi8042.

D

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

-----Original Message-----
From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
Sent: Wednesday, October 30, 2002 7:50 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

Hi Doron,

Here are my responses.

Which bits are IBF / OBF ? do you mean input buffer full and output
buffer full? If so, are you referring to the kbd or the mouse when
talking about these bits? Any unsynchronized reads can easily race
with

>>>yes. I am talking about kbd. I want to ignore mouse events.
My idea is by looking at the bit5, I can detect auxillary input while
reading
data when IBF/OBF are clear ,will not interfere with ISR. Also, using
status
buffer, command and data can be differentiated. This will prevent
malfunctioning
due to eating of intermediate command bytes.

8042 … for instance, if the we are writing the typematic or LEDs to
the device at the time, you could eat the ACK from underneath
i8042prt.
Also, user’s get quite ticked off when a keystroke is lost, just
imagine
the frustration the user would experience when random keys don’t work
one time, esp if they are pressing C+A+D or typing their password when
they are logging in.

>>>> Since, data is read when IBF/OBF bits are clear, it will not
interfere with ISRs and OS can get all the keystrokes. But, it is
my driver which is likely to lose some keystrokes.

Why do you need to read from these ports in the first place? Do you
have an auxiliary device other then a keyboard or mouse attached to
the
ps/2 ports?

>>>>I suppose reading through filter driver will be time consuming,
especially for the
loops where polling time is critical. So, I am thinking of the
optimisation.

Do u agree with these ?

Sundeep

-----Original Message-----
From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
Sent: Tuesday, October 29, 2002 7:39 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
mouse.

Thanks Doron.

I was tempted to access 8042 ports direcly.But, I agree that safest
way
is through filter driver.

Just out of curiosity I have one question. If I read these ports, when
OBF
or IBF
are not set, then I think ISR for kb/mouse won’t miss the inputs. I
mean
reading
data will not affect IBF/OBF flags and OS will not face any trouble.
My driver will still get data as unless next data is written, 60h will
not
get refreshed. It is likely that drv will miss some kb hits, but that
is
ok.

Sundeep

----- Original Message -----
From: Doron Holan
> To: NT Developers Interest List
> Sent: Saturday, October 26, 2002 6:42 PM
> Subject: [ntdev] RE: Detecting bus & mouse type and disable the ps/2
> mouse.
>
>
> > The ps/2 driver does not allow disabled w/out a reboot, so even if
you
> found the ps/2 mouse, you could not disable and reenable it (btw,
there
> is
> no way documented way to find out if the mouse on the system is ps/2
or
> not). If you are trying to write to the ps/2 ports (0x60 and x064),
then
> perhaps you should consider installing a device upper filter on the
> keyboard
> and / or mouse ps/2 devices; see the moufilr and kbdfiltr examples in
> the
> DDK for a starting point.
> >
> > D
> >
> > This posting is provided “AS IS” with no warranties, and confers no
> rights.
> >
> >
> > -----Original Message-----
> > From: Sundeep [mailto:xxxxx@nital.stpp.soft.net]
> > Sent: Friday, October 25, 2002 6:32 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] Detecting bus & mouse type and disable the ps/2
> mouse.
> >
> > Hi all,
> >
> > I am trying to develope win2k driver. I wish to detect –
> > 1. if my pc has MCA or EISA bus.
> > 2. if MCA system, check if ps/2 mouse is present & enabled.
> > 3. if enabled, disable it,(if possible all auxillary ports) &
> > again enable it,after driver completes its specified functioning.
> >
> > I DONOT want to control the mouse/modify its events.
> > For my application, it is acceptable that till driver completes
> > its specified function, no other application can have mouse
> > inputs.
> >
> > Can anybody help me in this?
> >
> > Thanks in advance,
> > Sundeep
> >
> > —
> > You are currently subscribed to ntdev as:
xxxxx@windows.microsoft.com
> > To unsubscribe send a blank email to %%email.unsub%%
> >
> >
> > —
> > You are currently subscribed to ntdev as:
xxxxx@nital.stpp.soft.net
> > To unsubscribe send a blank email to %%email.unsub%%
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nital.stpp.soft.net
> To unsubscribe send a blank email to %%email.unsub%%


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