How to use mouse and keyboard in native mode?

Hi All,

Please tell me How to use mouse and keyboard in native mode?

Thanks & regards,
Amit.

Why would you want to use the mouse in native mode? There is no cursor
when a native mode application runs at the start of boot.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Tuesday, June 12, 2007 4:18 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to use mouse and keyboard in native mode?

Hi All,

Please tell me How to use mouse and keyboard in native mode?

Thanks & regards,
Amit.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

To read from keyboard in native mode you need to open a handle to
“\Device\KeyboardClass0” device and read KEYBOARD_INPUT_DATA buffers from
it.

Chandra

On 6/13/07, Doron Holan wrote:
>
> Why would you want to use the mouse in native mode? There is no cursor
> when a native mode application runs at the start of boot.
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@yahoo.com
> Sent: Tuesday, June 12, 2007 4:18 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to use mouse and keyboard in native mode?
>
> Hi All,
>
> Please tell me How to use mouse and keyboard in native mode?
>
> Thanks & regards,
> Amit.
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

That will not work for a couple of reasons. One, there may be more then
one physical keyboard and you will only be reading from one of them.
There are virtual keyboard stacks on the machine, especially for
terminal services. More often then not, the virtual keyboard is
\Device\KeyboardClass0 so in that case you will never see any keystroke.
Instead, get the list of keyboard device interfaces, open each one and
then pend a read on each device.

d

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of chandra97 97
Sent: Wednesday, June 13, 2007 12:38 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] How to use mouse and keyboard in native mode?

To read from keyboard in native mode you need to open a handle to
“\Device\KeyboardClass0” device and read KEYBOARD_INPUT_DATA buffers
from it.

Chandra

On 6/13/07, Doron Holan wrote:

Why would you want to use the mouse in native mode? There is no cursor
when a native mode application runs at the start of boot.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Tuesday, June 12, 2007 4:18 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to use mouse and keyboard in native mode?

Hi All,

Please tell me How to use mouse and keyboard in native mode?

Thanks & regards,
Amit.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer