From: Doron Holan [MSFT] on
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" <AramHvrneanu(a)discussions.microsoft.com> wrote in message
news:D1887D42-7FCD-47BC-8B13-5FB097702D17(a)microsoft.com...
> "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
>>
From: Maxim S. Shatskih on
> However I still have all the other problems (can't load the driver with the
> SCM API

This is by design.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com