; Copyright (C) NEC Personal Computers, Ltd. 2007-2018
[Version]
Signature="$Windows NT$"
Provider=%NECPC%
ClassGUID={4D36E96B-E325-11CE-BFC1-08002BE10318}
Class=Keyboard
CatalogFile=nmfps2.cat
DriverVer=05/06/2018, 10.25.0.12

[DestinationDirs]
DefaultDestDir		= 12
;MFKB_CopyFiles.NT       = 16422,NECMFK  ;Program Files\NECMFK
;MFKB_CopyFiles.amd64    = 16422,NECMFK  ;Program Files\NECMFK
MFKB_CoInstaller_CopyFiles = 11         ;KMDF


[Manufacturer]
%NECPC%   = NECPC.Mfg, NTamd64

[NECPC.Mfg]
%Ps2Led.SvcDesc% = Ps2Led, ACPI\VEN_NCT&DEV_0011

[NECPC.Mfg.NTamd64]                       ; x64 Modules section
%Ps2Led.SvcDesc% = Ps2Ledamd64, ACPI\VEN_NCT&DEV_0011

;
; General installation section
;

[Ps2Led]
; perform port related actions from keyboard.inf
Include=keyboard.inf
Needs =	106_TYPE_Inst
CopyFiles = Ps2Led.CopyFiles

[Ps2Ledamd64]
; perform port related actions from keyboard.inf
Include=keyboard.inf
Needs =	106_TYPE_Inst
CopyFiles = Ps2Led.CopyFiles

;
; Service Installation
;

[Ps2Led.Services]
AddService = Ps2Led,  , Ps2Led_Service_Inst
; Install the port driver and mouclass from keyboard.inf
Include=keyboard.inf
Needs=106_TYPE_Inst.Services

[Ps2Ledamd64.Services]
AddService = Ps2Led,  , Ps2Led_Service_Inst
; Install the port driver and mouclass from keyboard.inf
Include=keyboard.inf
Needs=106_TYPE_Inst.Services

[Ps2Led_Service_Inst]
DisplayName    = %Ps2Led.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Keyboard Port
ServiceBinary  = %12%\Ps2Led.sys

[Ps2Led.HW]
; Add the device upper filter
AddReg = Ps2Led.HW.AddReg, GTKEY.AddReg

; run the directives need by the port driver
Include=keyboard.inf
Needs=106_TYPE_Inst.HW

[Ps2Ledamd64.HW]
; Add the device upper filter
AddReg = Ps2Led.HW.AddReg, GTKEY.AddReg

; run the directives need by the port driver
Include=keyboard.inf
Needs=106_TYPE_Inst.HW

[Ps2Led.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"Ps2Led"
HKLM,SYSTEM\CurrentControlSet\Services\Ps2Led\Parameters,MultiFunctionCode,,%MFKCode%
HKLM,SYSTEM\CurrentControlSet\Services\Ps2LedIF,ErrorControl,0x10001,%ErrorControl%
HKLM,SYSTEM\CurrentControlSet\Services\Ps2LedIF,Group,,%Group%
HKLM,SYSTEM\CurrentControlSet\Services\Ps2LedIF,ImagePath,,%ImagePath%
HKLM,SYSTEM\CurrentControlSet\Services\Ps2LedIF,Start,0x10001,%Start%
HKLM,SYSTEM\CurrentControlSet\Services\Ps2LedIF,Type,0x10001,%Type%
;for New code
HKLM,SYSTEM\CurrentControlSet\Services\Ps2Led\Parameters,DeviceType,0x10001,1

[SourceDisksNames]
1 = %DiskId1%,,,

[SourceDisksFiles]
Ps2Led.sys = 1,,
necmfk.exe =1
mfkps2.dll=1
Ps2LedIF.sys=1
mfkgtkey.sys =1
mfkaps.dll   =1
wdfcoinstaller01009.dll=1        ;KMDF
necmfk.exe.manifest=1

[Ps2Led.CopyFiles]
Ps2Led.sys
Ps2LedIF.sys
mfkgtkey.sys

[MFKB_CopyFiles.NT]
necmfk.exe
mfkps2.dll
mfkaps.dll
necmfk.exe.manifest

[MFKB_CopyFiles.amd64]
necmfk.exe
mfkps2.dll
mfkaps.dll
necmfk.exe.manifest

[MFKB_AddReg.NT]
HKLM,%KEY_RUN%,NECMFK, ,"%16422%\necmfk\necmfk.exe"   ; Program Files\NECMFK
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","CD_CLASS",,"%CD_CLASS%"
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","CD_TITLE",,"%CD_TITLE%"
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","DVD_CLASS",,"%DVD_CLASS%"
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","DVD_TITLE",,"%DVD_TITLE%"
HKLM,"Software\NEC\NECMFK\AudioControl\Player","CD_CONTROL",0x10001,"%CD_CONTROL%"
HKLM,"Software\NEC\NECMFK\AudioControl\Player","DVD_CONTROL",0x10001,"%DVD_CONTROL%"
HKLM,"Software\NEC\NECMFK\Interface","MFKSTDKEY",0x10001,"%MFKSTDKEY%"
HKLM,"Software\NEC\NECMFK\Interface","PS2", 0x00010001, 0x00000000
HKLM,"Software\NEC\NECMFK\Interface","MFKNOTE", 0x00010001, 0x00000001
HKLM,"Software\NEC\NECMFK","MFKINI",0x00010001, 0x00000000

[MFKB_AddReg.NTamd64]
HKLM,%KEY_RUN%,NECMFK, ,"%16422%\necmfk\necmfk.exe"    ; Program Files\NECMFK
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","CD_CLASS",,"%CD_CLASS%"
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","CD_TITLE",,"%CD_TITLE%"
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","DVD_CLASS",,"%DVD_CLASS%"
;HKLM,"Software\NEC\NECMFK\AudioControl\Player","DVD_TITLE",,"%DVD_TITLE%"
HKLM,"Software\NEC\NECMFK\AudioControl\Player","CD_CONTROL",0x10001,"%CD_CONTROL%"
HKLM,"Software\NEC\NECMFK\AudioControl\Player","DVD_CONTROL",0x10001,"%DVD_CONTROL%"
HKLM,"Software\NEC\NECMFK\Interface","MFKSTDKEY",0x10001,"%MFKSTDKEY%"
HKLM,"Software\NEC\NECMFK\Interface","PS2", 0x00010001, 0x00000000
HKLM,"Software\NEC\NECMFK\Interface","MFKNOTE", 0x00010001, 0x00000001
HKLM,"Software\NEC\NECMFK","MFKINI",0x00010001, 0x00000000

[GTKEY.AddReg]
HKLM,"System\CurrentControlSet\Services\MFKGTKEY", "ImagePath",,"\SystemRoot\system32\drivers\mfkgtkey.sys"
HKLM,"System\CurrentControlSet\Services\MFKGTKEY", "Type",0x10001,1
HKLM,"System\CurrentControlSet\Services\MFKGTKEY", "Start",0x10001,1
HKLM,"System\CurrentControlSet\Services\MFKGTKEY", "Group",,"Base"
HKLM,"System\CurrentControlSet\Services\MFKGTKEY", "ErrorControl",0x10001,1

[APS.AddReg]
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS0",0x00010001,109
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS1",0x00010001,110
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS2",0x00010001,115
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS3",0x00010001,111
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS4",0x00010001,120
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS5",0x00010001,121
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS6",0x00010001,84
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS7",0x00010001,131
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS8",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS9",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS10",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS11",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS12",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS13",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS14",0x00010001,0x00000000
HKLM,"SOFTWARE\NEC\NECMFK\MFKAPS","APS15",0x00010001,0x00000000

HKLM,"SOFTWARE\NEC\NECMFK\Interface","MULTIBTN",0x00010001,0x00000001

;
;--- Coinstaller installation ------
;

[Ps2Led.Wdf]
KmdfService = Ps2Led, Ps2Led_wdfsect

[Ps2Ledamd64.Wdf]
KmdfService = Ps2Led, Ps2Led_wdfsect

[Ps2Led_wdfsect]
KmdfLibraryVersion = 1.9



[Strings]
DiskId1 = "NEC Note Keyboard with One-touch start buttons"
NECPC = "NEC Personal Computers, Ltd."
Ps2Led.SvcDesc="NEC Note Keyboard with One-touch start buttons"

;MFK Data
MFKCode ="0227085e0223085b0225085c0226085d021301620214016102180856021B085A0065087500670876020808650201016d0202016e0216015402170155022e0220023002100220024000710167007408570229087a022d087b02400180024101810242018202430183"
KEY_RUN="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
DVD_CLASS   ="MSDVD"
CD_CONTROL  ="2"        ;MFK I/F
DVD_CONTROL ="2"        ;MFK I/F
MFKNOTE     ="1"
MFKSTDKEY   ="1"
ErrorControl="1"
Group       ="Base"
ImagePath   ="\SystemRoot\system32\drivers\ps2ledif.sys"
Start       ="1"
Type        ="1"
