dvcon

  • Thread starter Thread starter sboxes
  • Start date Start date
S

sboxes

is it possible to use devcon on a build to enable or
disable a device on boot?
 
Why would you want to do that? Can you tell us more?
There is probably a better way to do what ever is that you want to do.

Regards,
Slobodan
 
-----Original Message-----
Why would you want to do that? Can you tell us more?
There is probably a better way to do what ever is that you want to do.

Regards,
Slobodan


the hardware devices (2) are program specific i need to
load the device driver after the first program loads but
before the second program loads
 
the hardware devices (2) are program specific i need to
load the device driver after the first program loads but
before the second program loads

This is very unusual for final production.

You can use devcon.exe as you know. Or take only part from of devcon source
that enable/disable drivers.

If you have written drivers, I suggest you to redesign them a little.

All drivers should be loaded during the OS boot.

You can enable it's internal functioning by accessing it for instance with
CreateFile.
And stop it internally it during the close. But you should not attempt to
star/stop driver dynamically.

Regards,
Slobodan
 
my main problem is that there are two cards installed in
my system, one program has to load first not seeing one
card while the second program loads in the background
after the first and it requires the driver not seen by
the first program we need this to happen on all reboots

thanx
jim(sboxes)
 
Hi
I need to disable/enable drivers after my embedded system has started.
My system shall be distributed to customers.
I used code from devcom (sample code in the DDK) and wrote my
own utility that does the job.
(A tip from Brad Combs, thanks).

The reason for this is that I want to make some hardware diagnostic
tests that requires that the driver is disabled.
I am doing this on a Network Adapter, ComPort and some other devices.
It seems to work fine.

In microsoft site
"http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272"
it is stated:
"DevCon is not redistributable"
"You can freely modify DevCon for private use".

What does this mean: Can't I take parts of the code and include
in my application. How much must I modify it ?


Slobodan wrote:
"All drivers should be loaded during the OS boot".
"But you should not attempt to start/stop driver dynamically".

Why, could there be any strange effects.
I have got my solution to function today, so my testing is
currently not enough. Perhaps it only seems to work ok.

Lasse
 
Oh.....

This can't be done in the way you describe.
You just cant stop or remove driver that is held opened by some process.

You will need to find driver, that can have more than one instance (one
instance per card).
Also program must be able to enumerate all instances and to open only driver
that is available.

You should try asking this question in:
microsoft.public.win32.programmer.kernel

I have written driver for live video acquisition (full PAL resolution). 2
cameras per grabber card. 2 cards per PCI bus, number of PCI busses is
limited by hardware architecture of computer.

We have tested it with 3 PCI busses and 5 frame grabber cards
simultaneously.

But our goal from day one was to support more than one card, by hardware,
drivers and application.

Regards,
Slobodan
 
-----Original Message-----
Hi
I need to disable/enable drivers after my embedded system has started.
My system shall be distributed to customers.
I used code from devcom (sample code in the DDK) and wrote my
own utility that does the job.
(A tip from Brad Combs, thanks).

The reason for this is that I want to make some hardware diagnostic
tests that requires that the driver is disabled.
I am doing this on a Network Adapter, ComPort and some other devices.
It seems to work fine.

In microsoft site
"http://support.microsoft.com/default.aspx?scid=kb;EN- US;Q311272"
it is stated:
"DevCon is not redistributable"
"You can freely modify DevCon for private use".

What does this mean: Can't I take parts of the code and include
in my application. How much must I modify it ?
my question exactly where are the bounds
on "redistributable" i would like to usr it in a final
product only to load drivers in a specific timeframe is
there another way of doing this? if so how
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top