inf file for keyboard driver

I am trying to write minimal inf file for keyboard driver. Ctrl2Cap driver from sysinternals.com comes with installation program which writes driver sys file to system32\drivers directory and adds the following Registry entries:

HKLM\SYSTEM\CurrentControlSet\Services\Ctrl2cap
ErrorControl 1
Start 3
Type 1

HKLM\SYSTEM\CurrentControlSet\Control\Class{4D36E96B-E325-11CE-BFC1-08002BE10318}
UpperFilters kbdclass ctrl2cap (ctrl3cap is added)

I want to write inf file which makes the same. This is what I have now:

;-----------------------
[Version]
Signature=$CHICAGO$
Class=Unknown
Provider=%PROVIDER%

[Manufacturer]
%MFGNAME%=DeviceList

[DestinationDirs]
DefaultDestDir=10,System32\Drivers

[SourceDisksFiles]
ctrl2cap.sys=1,

[SourceDisksNames]
1=%INSTDISK%,

[DeviceList]
%DESCRIPTION%=DriverInstall,

[DriverInstall.ntx86]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
ctrl2cap.sys,2

[DriverInstall.ntx86.Services]
AddService=ctrl2cap,0,DriverService

[DriverService]
ServiceType=1
StartType=3
ErrorControl=1

ServiceBinary=%10%\system32\drivers\ctrl2cap.sys

[Strings]
PROVIDER=“sysinternals.com
MFGNAME=“sysinternals”
INSTDISK=“Ctrl2Cap Installation Disc”
DESCRIPTION=“Ctrl2Cap keyboard filter driver”
;----------------------

Trying to install this file I get “Incorrect parameter” error. What is wrong here? Is there some inf file verifier program which gives more information?
What entries should be added to this file to declare it as keyboard UpperFilter?
Thanks.


Do you Yahoo!?
Discover all that’s new in My Yahoo!

This installs the dirver as class upper filter. Do you want to filter all keyboards or just a particular keyboard? For a particular keyboard, look at the kbdfiltr example in the ddk.

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Alex Farber
Sent: Sunday, November 21, 2004 6:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] inf file for keyboard driver

I am trying to write minimal inf file for keyboard driver. Ctrl2Cap driver from sysinternals.com comes with installation program which writes driver sys file to system32\drivers directory and adds the following Registry entries:
?
HKLM\SYSTEM\CurrentControlSet\Services\Ctrl2cap
ErrorControl 1
Start? 3
Type?1
?
HKLM\SYSTEM\CurrentControlSet\Control\Class{4D36E96B-E325-11CE-BFC1-08002BE10318}
UpperFilters kbdclass ctrl2cap??? (ctrl3cap is added)
?
I want to write inf file which makes the same. This is what I have now:
?
;-----------------------
[Version]
Signature=$CHICAGO$
Class=Unknown
Provider=%PROVIDER%

[Manufacturer]
%MFGNAME%=DeviceList
?
[DestinationDirs]
DefaultDestDir=10,System32\Drivers
?
[SourceDisksFiles]
ctrl2cap.sys=1,
?
[SourceDisksNames]
1=%INSTDISK%,
?
[DeviceList]
%DESCRIPTION%=DriverInstall,
?
[DriverInstall.ntx86]
CopyFiles=DriverCopyFiles
?
[DriverCopyFiles]
ctrl2cap.sys,2
?
[DriverInstall.ntx86.Services]
AddService=ctrl2cap,0,DriverService
?
[DriverService]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%10%\system32\drivers\ctrl2cap.sys

[Strings]
PROVIDER=“sysinternals.com
MFGNAME=“sysinternals”
INSTDISK=“Ctrl2Cap Installation Disc”
DESCRIPTION=“Ctrl2Cap keyboard filter driver”
;----------------------
?
Trying to install this file I get “Incorrect parameter” error. What is wrong here? Is there some inf file verifier program which gives more information?
What entries should be added to this file to declare it as?keyboard UpperFilter?
Thanks.?


Do you Yahoo!?
Discover all that’s new in My Yahoo! — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com To unsubscribe send a blank email to xxxxx@lists.osr.com