you can't use the SCM to load a pnp driver.
d
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Aram Hăvărneanu" <> wrote in message
news

1887D42-7FCD-47BC-8B13-...
> "Aram Hăvărneanu" wrote:
>
>>
>> How is
>> running devcon.exe from a bat file any different to running it directly?
>>
>
> I think I may have an answer, I have copied the devcon line from the docs,
> and in the docs it uses smart quotes. The bat file was created manually
> using
> normal quotes. So that's why the bat file worked. If I type correct quotes
> in
> the command line it works as well.
>
> However I still have all the other problems (can't load the driver with
> the
> SCM API, doesn't work on Windows 7, etc).
>
> Thanks,
>
> --
> Aram Hăvărneanu
>
>
>
>> Also, I still can't load the driver with the service control manager api,
>> and although I can test the driver on NT 5.2 installed via bat file that
>> calls devcon, I need to be able to load it dynamically in my application.
>> Also, I need Windows Vista and 7.
>>
>> Thanks,
>>
>> --
>> Aram Hăvărneanu
>>