Ivan
Wed Dec 27 11:38:38 CST 2006
I think the original poster is working on a solution to "remote"
USB devices, buy replacing, somehow, the bus driver
in the machine where the USB driver is `loaded`.
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:E1C0B36C-7282-4BDE-AD4F-C890481EBBDA@microsoft.com...
> Could you please explain the "This driver registers the USB device" point?
> Does it pre-install the PnP functional driver?
> Otherwise, the static driver can be either legacy/ot PnP - in this case
> you
> install it simply as a service, by a simple sc command or win32 API;
> Or, it can be root enumerated - then you need an INF and can install it
> with devcon.exe or DifxAPI.
>
> Regards,
> --PA
>
> "Mk" wrote:
>> Thanks for the info david and doron. I guess i shd have provided more
>> info
>> abt my issue. here it is.. I have a static driver which should load
>> during OS
>> boot up & unload only during OS shutdown. This driver gets loaded by
>> means of
>> registry entries. This driver registers the USB device and does
>> neccessary
>> initialization code so that it will be visible to the applications. Now
>> when
>> i physically connect my USB device a functional driver will get loaded
>> for
>> the device. My static driver will get a handle to this functional driver
>> and
>> it will route all the calls from the application to the functional driver
>> which in turn will communicate to the device. When the device is
>> un-plugged
>> only the functional driver will unload the static driver will still b in
>> loaded state.
>>
>> "Doron Holan [MS]" wrote:
>>
>> > it sounds like you are manually trying to add the registry values under
>> > Enum. That is not allowed. instead, you must use setupapi to install
>> > the
>> > device. look at the devcon example for how to install a device
>> >
>> > d
>> >
>> > --
>> > Please do not send e-mail directly to this alias. this alias is for
>> > newsgroup purposes only.
>> > This posting is provided "AS IS" with no warranties, and confers no
>> > rights.
>> >
>> >
>> > "David J. Craig" <Dave@yoshimuni.com> wrote in message
>> > news:OHB2nRXKHHA.4244@TK2MSFTNGP04.phx.gbl...
>> > > You have omitted far too much information. Software only drivers can
>> > > be
>> > > loaded under Vista. Look at the WDK and Toaster.
>> > >
>> > > "Mk" <Mk@discussions.microsoft.com> wrote in message
>> > > news:E38D9FC0-BEA4-44B7-AFAD-FB5A2E48D9EF@microsoft.com...
>> > >>I had developed a static driver for Windows XP which will get loaded
>> > >>during
>> > >> OS boot up. This driver does not require any physical hardware and
>> > >> it
>> > >> gets
>> > >> loaded due to manual registry entries created under
>> > >> HKLM\SYSTEM\CurrentControlSet\Enum\Root.
>> > >>
>> > >> Now in Windows Vista it doesn't allow me to create registry entry
>> > >> manually
>> > >> under the enum \Root key due to rights restriction. Finally I was
>> > >> able to
>> > >> create registry entry thru a kernel code. After system reboot I can
>> > >> see
>> > >> device enumeration I provide the path to my static driver it loads
>> > >> the
>> > >> driver
>> > >> but in the final screen it says "Installation of the device
>> > >> forbidden by
>> > >> System policy ". Is there any way to make driver load during boot
>> > >> time
>> > >> without even a device in Vista?? Kindly help me out in this.
>> > >>
>> > >>
>> > >
>> > >
>> >
>> >
>> >