ImagePath= \??\C:\... (Start and stop driver driver using net start/stop drivername)

ImagePath= \??\C:\... (Start and stop driver driver using net start/stop drivername)

Post by GeminiServ » Thu, 10 Dec 2009 23:17:52


Hi,
it is a non Pnp Driver

ImagePath= \??\C:\Windows\system32\drivers\myDriver.sys
-> The driver can be startet but no Driver details

For what is the \??\ for ? Can some one explain it ?

Why does it not work on if the following paths are set?
ImagePath= system32\drivers\myDriver.sys
-> System error 2 has occurred.
-> The system cannot find the file specified.

ImagePath= %SystemRoot%\system32\drivers\myDriver.sys
-> System error 2 has occurred.
-> The system cannot find the path specified.

cheers,
GeminiServer
 
 
 

ImagePath= \??\C:\... (Start and stop driver driver using net start/stop drivername)

Post by Maxim S. S » Thu, 10 Dec 2009 23:39:14

> Why does it not work on if the following paths are set?

Just omit ImagePath, this will result in a default of \SystemRoot\system32\drivers\ServiceName.sys

--
Maxim S. Shatskih
Windows DDK MVP
XXXX@XXXXX.COM
http://www.yqcomputer.com/

 
 
 

ImagePath= \??\C:\... (Start and stop driver driver using net start/stop drivername)

Post by GeminiServ » Fri, 11 Dec 2009 02:33:55

Maxim S. Shatskih schrieb:

This will not work if i try to start it from a application
\SystemRoot\system32\drivers\ServiceName.sys.

-> StartService( hService, 0, 0 )

if ImagePath is set to \??\C:\Windows\System32\drivers\erviceName.sys
then i can start it with StartService( hService, 0, 0 ) !!

Any Idea ?
 
 
 

ImagePath= \??\C:\... (Start and stop driver driver using net start/stop drivername)

Post by Maxim S. S » Fri, 11 Dec 2009 05:39:52

>> Just omit ImagePath, this will result in a default of \SystemRoot\system32\drivers\ServiceName.sys

Then you have some issue, for me, it was always working.

"ServiceName" is a macro, which is actually the name of the SC database registry key.

--
Maxim S. Shatskih
Windows DDK MVP
XXXX@XXXXX.COM
http://www.yqcomputer.com/
 
 
 

ImagePath= \??\C:\... (Start and stop driver driver using net start/stop drivername)

Post by Pavel A » Sat, 12 Dec 2009 00:31:37

If you installed the diver with "sc create" this is a bugo-feature of sc (or
maybe SCM API).
It does not understand "\systemroot" or "%systemroot%" or no binary path at
al for drivers.
However if you fix the path in the registry, it should work - unless your
systemroot is not C:\Windows.

--pa