I am new to kernel mode driver of Windows NT.it may be a basic question for
expert driver writer.
With my keyboard driver(kernel mode) how can i open “Command prompt” and
“Calculator”.for an example command prompt become open if we press
“Command” button on my new keyboard.
Pleases give your suggetions.
Regards
-John
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> With my keyboard driver(kernel mode) how can i open “Command prompt” and
“Calculator”.for an example command prompt become open if we press
“Command” button on my new keyboard.
I think that user mode DLL and a system message hook is a way to go for
this, not kmode keyboard driver.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hi,
The easieist way to do this is by invoking Keyboard system hook in USER mode
dll.
this hook will recieve all messages from the keyboard before passing it to
the application.
you can filter these messages to do specific commands out.
if you need more details go to msdn and search for hook
Hesham
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, August 03, 2001 12:00 AM
Subject: [ntdev] Kernel mode driver
> I am new to kernel mode driver of Windows NT.it may be a basic question
for
> expert driver writer.
> With my keyboard driver(kernel mode) how can i open “Command prompt” and
> “Calculator”.for an example command prompt become open if we press
> “Command” button on my new keyboard.
>
> Pleases give your suggetions.
>
> Regards
> -John
>
> —
> You are currently subscribed to ntdev as: xxxxx@yahoo.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Thanks Max and Hesham.Can you tell me why i can’t
achive this functionality by kernelmode keyboard
driver ?
Regards,
-John
— “Maxim S. Shatskih”
wrote: > > With my keyboard driver(kernel mode) how
can i
> open “Command prompt” and
> > “Calculator”.for an example command prompt become
> open if we press
> > “Command” button on my new keyboard.
>
> I think that user mode DLL and a system message hook
> is a way to go for
> this, not kmode keyboard driver.
>
> Max
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.co.uk
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> Thanks Max and Hesham.Can you tell me why i can’t
achive this functionality by kernelmode keyboard
driver ?
Because this is a wrong place to do so.
Kernel-mode keyboard filter is used to filter the keyboard device at nearly
the hardware level.
What you want is to assign some shell commands to be executed at keystrokes.
The kernel knows nothing on shell commands. So, the correct place to do this
is a hook DLL which will insert itself to UI’s handling of events.
You can go the kmode way too, but you will have lots of extra problems,
NT4/w2k/Win9x portability, debugging complexities etc.
Also - starting an app from the kmode driver is a problem, starting a
windowed app - another problem, and executing the arbitrary shell command is
next to impossible.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Max,I am agree with your view.
I have some other issues relating to this keyboard
driver for WinNT.
Actually this keyboard also have some Hotkeys for the
CD Drive like “Eject” key to eject the Cd Rom
Tray,“Play” to begin palying a CD or a video
file.Other buttons like “Vol+” to incresre the
volume,“Power” to close(shutdown),“Sleep” puts the
system to sleep(power-saving) mode,“Waek” to wakes up
the system.
Can all this functionality batter to be impleted by a
user mode DLL and system message hook instead
of kmode driver or we can saprate these between kmode
driver and user mode dll in WinNT?
Thanks,
-John
— “Maxim S. Shatskih”
wrote: > > Thanks Max and Hesham.Can you tell me why i
can’t
> > achive this functionality by kernelmode keyboard
> > driver ?
>
> Because this is a wrong place to do so.
> Kernel-mode keyboard filter is used to filter the
> keyboard device at nearly
> the hardware level.
> What you want is to assign some shell commands to be
> executed at keystrokes.
> The kernel knows nothing on shell commands. So, the
> correct place to do this
> is a hook DLL which will insert itself to UI’s
> handling of events.
>
> You can go the kmode way too, but you will have lots
> of extra problems,
> NT4/w2k/Win9x portability, debugging complexities
> etc.
> Also - starting an app from the kmode driver is a
> problem, starting a
> windowed app - another problem, and executing the
> arbitrary shell command is
> next to impossible.
>
> Max
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.co.uk
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> Can all this functionality batter to be impleted by a
user mode DLL and system message hook instead
of kmode driver or we can saprate these between kmode
driver and user mode dll in WinNT?
IIRC you can hook any keyboard combinations from user mode message hook.
Things like controlling the volume are extremely hard to do in kmode and
easy in umode.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Thanks Max for express help.I will get back if i get
into any more roadblocks
Now i am chenging my approch and going for user mode
DLL for these Hotkeys.
IIRC you can hook any keyboard combinations from
user mode message hook.
what do you mean by IIRC?
Regards,
-John
— “Maxim S. Shatskih”
wrote: > > Can all this functionality batter to be
impleted
> by a
> > user mode DLL and system message hook instead
> > of kmode driver or we can saprate these between
> kmode
> > driver and user mode dll in WinNT?
>
> IIRC you can hook any keyboard combinations from
> user mode message hook.
> Things like controlling the volume are extremely
> hard to do in kmode and
> easy in umode.
>
> Max
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.co.uk
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com