osrloader fails to load my driver

I have written a small driver. I try to load it using the osrloader.exe utility. When I click on the ‘Start Service’ button, i get an error saying “The system cannot find the file specified.”. I have verified the path of the .sys file.

Thx in advance,
Anupam Godbole

befor clicking on start have you register your driver service on path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XXXX… check the
image name and path befor starting that…

On 4/19/07, xxxxx@gmail.com wrote:
>
> I have written a small driver. I try to load it using the osrloader.exeutility. When I click on the ‘Start Service’ button, i get an error saying
> “The system cannot find the file specified.”. I have verified the path of
> the .sys file.
>
> Thx in advance,
> Anupam Godbole
>
> —
> 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
>

Your solution worked alright on the VMWare but didnt work on a test machine that i have. Any idea as to why this might be happening?

Anupam Godbole

You DO have your driver on the boot drive… local to your target system?

If you can load it in VMWare, you can load it into Windows. It’s got to be something simple you are or are not doing.

Peter
OSR

Did you perform this on Vista? If so, make sure you are starting
osrloader.exe by “Run as Administrator.”

>> xxxxx@gmail.com 2007-04-19 06:14 >>>
befor clicking on start have you register your driver service on path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XXXX… check
the
image name and path befor starting that…

On 4/19/07, xxxxx@gmail.com wrote:
>
> I have written a small driver. I try to load it using the
osrloader.exeutility. When I click on the ‘Start Service’ button, i get
an error saying
> “The system cannot find the file specified.”. I have verified the
path of
> the .sys file.
>
> Thx in advance,
> Anupam Godbole
>
> —
> 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
>


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

As far as I remember, this error message may get displayed on Vista under various circumstances that may have nothing to do with the path to the .sys file. For example, sometimes you may see it if your DriverEntry() returns an error. Try to hook up a debugger, and check what’s going on in DriverEntry()- there is a good chance that it actually gets executed, despite the error message that
stronly suggests exactly the opposite…

Anton Bassov