when ever i unloading and reloading the driver. it is asking for reboot. things i am doing during unload time. 1. deleting root devices 2. stopping and deleting the service 3. unloading the driver by using DriverPackageUninstall after these process system is not asking for reboot.
but when i am loading the driver. it is loading the driver but finally it is asking for reboot.
during load time things i am doing. 1. Creating root device 2. installing driver using DriverPackageInstall and internally it is calling UpdateDriverForPlugAndPlayDevices