windows failed to start after updaing driver

I use fsctl to get driver file sectors on disk, then write new driver file directly to the sectors via \.\physicaldriveX (my drivers all have same file size)… But when i restart system, i get windows boot error:

File: \WIndows\system32\drivers\xxxx.sys
Status: 0xc0000221
Info:Windows failed to load because a critical system driver is missing, or corrupt.

When i mount the disk on another system, i can see that my driver file has been updated. and I am sure that both drivers works well.

My system is vista sp1 x32
Any suggestion?

Sounds like it might have a bad checksum.

Why are you doing this?

mm

Good. Windows is correctly preventing a compromised system from starting.

Mark Roddy

On Sun, Nov 15, 2009 at 11:11 PM, wrote:
> I use fsctl to get driver file sectors on disk, then write new driver file directly to the sectors via \.\physicaldriveX (my drivers all have same file size)… But when i restart system, i get windows boot error:
>
> File: \WIndows\system32\drivers\xxxx.sys
> Status: 0xc0000221
> Info:Windows failed to load because a critical system driver is missing, or corrupt.
>
> When i mount the disk on another system, i can see that my driver file has been updated. and I am sure that both drivers works well.
>
> My system is vista sp1 x32
> Any suggestion?
>
>
> —
> 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
>