why it is required to reboot ?

I have a bus driver and I have done some experiments with it.

If I don’t attach the Pnp functionality,

//DriverObject->MajorFunction [IRP_MJ_PNP] = Bus_PnP;
( I have commented this line in my source code )

then after installation it asks for reboot.Also after reboot, I go to
device manager and it says that the device is not functioning properly (
error code 10) and dont have an entry point.And if I uncomment the above
line in source code, then it’s fine.It gets install properly and the
device manager says “it’s fine”.
What is the criteria for rebooting after a driver installation?
Anand.

I am not sure which PnP IRP is causing this, likely its
IRP_MN_QUERY_RELATIONS. Why don’t you just modify the particular PnP IRP
handlers until you find the one, or the ones that cause this behavior.


Bill McKenzie
Windows DDK MVP
OSR - Windows System Software Development, Training, and Consulting

“Anand” wrote in message news:xxxxx@ntdev…
>
> I have a bus driver and I have done some experiments with it.
>
> If I don’t attach the Pnp functionality,
>
> //DriverObject->MajorFunction [IRP_MJ_PNP] = Bus_PnP;
> ( I have commented this line in my source code )
>
> then after installation it asks for reboot.Also after reboot, I go to
> device manager and it says that the device is not functioning properly (
> error code 10) and dont have an entry point.And if I uncomment the above
> line in source code, then it’s fine.It gets install properly and the
> device manager says “it’s fine”.
> What is the criteria for rebooting after a driver installation?
> Anand.
>
>
>