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.

Re: Vista Driver query by David

David
Tue Dec 26 23:03:52 CST 2006

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.
>
>



Re: Vista Driver query by Doron

Doron
Tue Dec 26 23:17:04 CST 2006

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.
>>
>>
>
>



Re: Vista Driver query by Mk

Mk
Wed Dec 27 04:57:01 CST 2006

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.
> >>
> >>
> >
> >
>
>
>

Re: Vista Driver query by Maxim

Maxim
Wed Dec 27 05:02:42 CST 2006

SetupDiCreateDeviceInfo can help.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"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.
>
>


Re: Vista Driver query by Ivan

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.
>> > >>
>> > >>
>> > >
>> > >
>> >
>> >
>> >



Re: Vista Driver query by Mk

Mk
Wed Dec 27 22:53:00 CST 2006

Hi Pavel thanks for the info.. Iam basically trying to load a static driver
which will register my USB device and simulate device presence to
applications even without the device being physically connected. Once i
connect the device a functional driver will get loaded for the device. My
static driver will get a notification and it will start communication to the
functional driver. What ever call that comes from the applications will go to
the static driver first which will in turn route to the functional driver if
device present . Iam not trying to replace the controller driver. I have been
doing this in XP by creating registry entries under the ENUM key but now in
vista iam not able to do this due to rights restrictions.

"Maxim S. Shatskih" wrote:

> SetupDiCreateDeviceInfo can help.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "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.
> >
> >
>
>

Re: Vista Driver query by pavel_a

pavel_a
Thu Dec 28 06:16:01 CST 2006

"Mk" wrote:
> Hi Pavel thanks for the info.. Iam basically trying to load a static driver
> which will register my USB device and simulate device presence to
> applications even without the device being physically connected. Once i
> connect the device a functional driver will get loaded for the device. My
> static driver will get a notification and it will start communication to the
> functional driver. What ever call that comes from the applications will go to
> the static driver first which will in turn route to the functional driver if
> device present . Iam not trying to replace the controller driver. I have been
> doing this in XP by creating registry entries under the ENUM key but now in
> vista iam not able to do this due to rights restrictions.

Ok then just make a "legacy" driver, assign it system (or even boot) startup
type, and don't be bothered by the enum key or whatever suff we don't want to
know about.
For x64 Vista, sign the driver as explained on ndis.com site.

Good luck,
--PA

> "Maxim S. Shatskih" wrote:
>
> > SetupDiCreateDeviceInfo can help.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> > http://www.storagecraft.com
> >
> > "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.



Re: Vista Driver query by Mk

Mk
Mon Jan 01 23:53:00 CST 2007

Hi pavel

Thanx for the information. I will look into this and let you know the
results.
Have a Great new year.
"Pavel A." wrote:

> "Mk" wrote:
> > Hi Pavel thanks for the info.. Iam basically trying to load a static driver
> > which will register my USB device and simulate device presence to
> > applications even without the device being physically connected. Once i
> > connect the device a functional driver will get loaded for the device. My
> > static driver will get a notification and it will start communication to the
> > functional driver. What ever call that comes from the applications will go to
> > the static driver first which will in turn route to the functional driver if
> > device present . Iam not trying to replace the controller driver. I have been
> > doing this in XP by creating registry entries under the ENUM key but now in
> > vista iam not able to do this due to rights restrictions.
>
> Ok then just make a "legacy" driver, assign it system (or even boot) startup
> type, and don't be bothered by the enum key or whatever suff we don't want to
> know about.
> For x64 Vista, sign the driver as explained on ndis.com site.
>
> Good luck,
> --PA
>
> > "Maxim S. Shatskih" wrote:
> >
> > > SetupDiCreateDeviceInfo can help.
> > >
> > > --
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > maxim@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > > "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.
>
>