Loading driver at boot !

Hello,

I have a very simple NT driver I want to load at boot time on a Windows XP
system.

The driver is very simple. It only has two functions: DriverEntry and
Unload. It only configures some register needing to be configured on my
embedded system before the PCY.sys load.

When I manually start the service, it starts fine. But, when I set registry
to load it a boot time and reboot the computer, I get a message in the event
log (Event ID 7026) saying that the service manager cannot start it.

In order to have more information, I set the ErrorControl key to 3. Then, I
got a “Black screen” saying me that the driver was corrupted. I know that
this driver is not corrupted because it work fine when used anytime else
than at boot.

  • Does Windows XP do special check on boot driver?

  • If yes, how can I bypass it or make it success?

  • When compiling a boot driver, do I need to do a special
    operation?

Any hint will be appreciated.

Thanks,

You need to create a device object in DriverEntry routine.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Martin Dubois”
To: “Windows System Software Devs Interest List”
Cc:
Sent: Thursday, March 23, 2006 12:49 PM
Subject: [ntdev] Loading driver at boot !

> Hello,
>
>
>
> I have a very simple NT driver I want to load at boot time on a Windows XP
> system.
>
>
>
> The driver is very simple. It only has two functions: DriverEntry and
> Unload. It only configures some register needing to be configured on my
> embedded system before the PCY.sys load.
>
>
>
> When I manually start the service, it starts fine. But, when I set registry
> to load it a boot time and reboot the computer, I get a message in the event
> log (Event ID 7026) saying that the service manager cannot start it.
>
>
>
> In order to have more information, I set the ErrorControl key to 3. Then, I
> got a “Black screen” saying me that the driver was corrupted. I know that
> this driver is not corrupted because it work fine when used anytime else
> than at boot.
>
>
>
> - Does Windows XP do special check on boot driver?
>
> - If yes, how can I bypass it or make it success?
>
> - When compiling a boot driver, do I need to do a special
> operation?
>
>
>
> Any hint will be appreciated.
>
>
>
> Thanks,
>
>
>
>
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer