Windows File Protection.

Hello All,
I am currently doing R&D

Hello All,
I have written few of the drivers in past but all of them are virtual one. Currently i am doing R&D to write device drivers which will actually interact with the our physical device. For that purpose i am studing the kbdclass.sys sample driver avilable at ‘…\src\input\kbdclass’ in WDK. Here i just want to see how the Power mgmt, Interuptt mgmt, IO mapping etc has been done. Now I have build it and want to replace it in ‘…/system32/drivers’ folder to test and debug it, but due to Windows File Protection I am not able to replace it. Can anybody help in this case?
Is it possible to disable the Windows File Protection on the sytem?(windows server 2003 with Service Pack 2 in my case)
if not then what should be my way to proceed?
Any help will highly appriciated, thanks in advance.

>Now I have build it and want to replace it in ‘…/system32/drivers’ folder

to test and debug it, but due to Windows File Protection I am not >able to
replace it.

My preferred method is to create a “chk” subdirectory of \System32\Drivers,
put the checked versions there, then change the ImagePath of the appropriate
service key to point to the chk\foo.sys version.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

wrote in message news:xxxxx@ntdev…
> Hello All,
> I have written few of the drivers in past but all of them are
> virtual one. Currently i am doing R&D to write device drivers which will
> actually interact with the our physical device. For that purpose i am
> studing the kbdclass.sys sample driver avilable at ‘…\src\input\kbdclass’
> in WDK. Here i just want to see how the Power mgmt, Interuptt mgmt, IO
> mapping etc has been done. Now I have build it and want to replace it in
> ‘…/system32/drivers’ folder to test and debug it, but due to Windows File
> Protection I am not able to replace it. Can anybody help in this case?
> Is it possible to disable the Windows File Protection on the
> sytem?(windows server 2003 with Service Pack 2 in my case)
> if not then what should be my way to proceed?
> Any help will highly appriciated, thanks in advance.
>

Usually an easy way to do is to edit the registry information for (in your case) kbdclass (HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\kbdclass)'s ImagePath to point to your driver image instead of the default one.

That being said, are you sure that this is the driver that you want to experiment with? No keyboard == no fun.

Good luck,

mm

Kbdclass is not a great example to learn io, power mgmt and pnp from. Start off with a non inbox sample and go with kmdf so that you can concentrate on all of the real stuff your driver needs to do, not all the boilerplate wdm stuff

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Wednesday, August 12, 2009 7:44 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Windows File Protection.

Hello All,
I have written few of the drivers in past but all of them are virtual one. Currently i am doing R&D to write device drivers which will actually interact with the our physical device. For that purpose i am studing the kbdclass.sys sample driver avilable at ‘…\src\input\kbdclass’ in WDK. Here i just want to see how the Power mgmt, Interuptt mgmt, IO mapping etc has been done. Now I have build it and want to replace it in ‘…/system32/drivers’ folder to test and debug it, but due to Windows File Protection I am not able to replace it. Can anybody help in this case?
Is it possible to disable the Windows File Protection on the sytem?(windows server 2003 with Service Pack 2 in my case)
if not then what should be my way to proceed?
Any help will highly appriciated, thanks in advance.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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

Hello everybody,
Really i am very thankful to all of you for giving me such fast and best guidance. Actully i was investing my time on the wrong track from yesterday.
Thank you for putting me on right track.