how to replace the original free-build classpnp.sys?

Hi, I am new to device driver development.

I am trying to replace the original free-built classpnp.sys
with the one that can be built from the DDK package( under
…\storage\class\classpnp). But it seems once the system booted,
i can not rename or delete the \Winnt\system32\drivers\classpnp.sys.

I may be able to replace the file by allowing another Win2k machine
to access my hard disk, but…

Is there a simpler way to do the same job?
Thanks a lot. Your help is very appreciated.

Wei

This is due to Windows File Protection. I think there are several ways to disable it. One quick and dirty way is to delete the file you are replacing from the DLLCache directory (by default, %systemroot%\system32\dllcache) - then, Windows will not be able to copy the original file back over your modified file. I’m sure that there are other, cleaner ways to do this as well - the registry key

HKEY_LOCAL_MACHINE\ Software\ Microsoft\Windows NT\CurrentVersion\Winlogon

has several “SFC*” values that control the behavior of Windows File Protection.

Regards,

Ed Lau

MidCore Software, Inc.
900 Straits Tpke
Middlebury, CT 06762

www.midcore.com

----- Original Message -----
From: Wei
To: NT Developers Interest List
Sent: Tuesday, March 12, 2002 11:10 AM
Subject: [ntdev] how to replace the original free-build classpnp.sys?

Hi, I am new to device driver development.

I am trying to replace the original free-built classpnp.sys
with the one that can be built from the DDK package( under
…\storage\class\classpnp). But it seems once the system booted,
i can not rename or delete the \Winnt\system32\drivers\classpnp.sys.

I may be able to replace the file by allowing another Win2k machine
to access my hard disk, but…

Is there a simpler way to do the same job?
Thanks a lot. Your help is very appreciated.

Wei


You are currently subscribed to ntdev as: xxxxx@midcore.com
To unsubscribe send a blank email to %%email.unsub%%

Disable system file protection.

Jamey Kirby
StorageCraft, inc.
xxxxx@storagecraft.com
www.storagecraft.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wei
Sent: Tuesday, March 12, 2002 8:11 AM
To: NT Developers Interest List
Subject: [ntdev] how to replace the original free-build classpnp.sys?

Hi, I am new to device driver development.

I am trying to replace the original free-built classpnp.sys
with the one that can be built from the DDK package( under
…\storage\class\classpnp). But it seems once the system booted,
i can not rename or delete the \Winnt\system32\drivers\classpnp.sys.

I may be able to replace the file by allowing another Win2k machine
to access my hard disk, but…

Is there a simpler way to do the same job?
Thanks a lot. Your help is very appreciated.

Wei


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%

One way to do this would be to boot the system to the recovery
console (through the Setup CD) and then replace the required
driver. Windows File Protection is disabled at the recovery console.

Wei wrote:

Hi, I am new to device driver development.

I am trying to replace the original free-built classpnp.sys
with the one that can be built from the DDK package( under
…\storage\class\classpnp). But it seems once the system booted,
i can not rename or delete the \Winnt\system32\drivers\classpnp.sys.

I may be able to replace the file by allowing another Win2k machine
to access my hard disk, but…

Is there a simpler way to do the same job?
Thanks a lot. Your help is very appreciated.

Wei


You are currently subscribed to ntdev as: xxxxx@india.hp.com
To unsubscribe send a blank email to %%email.unsub%%