Re: ReInvoking MiniportInitialize from protocol driver

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi

My Objective is simple....I want to reinvoke my MiniportInitialize
without removing my device

any advice??

--Pradeep



soviet_bloke@xxxxxxxxxxx wrote:
Hi mate

And More over We want to call MiniportInitialize() without being
DriverEntry Called. If we use SetupDi calls that may unload driver,
which shouldn't happen...

But why do you present the above requirement???? What are your overall
objectives????

Anton Bassov

haideepu wrote:
Hi Stephan

Thanx for your reply...
Our driver doestn't have Intermediate driver
...NdisIMDeInitializeDeviceInstance() can only be used with
Intermediate driver.....We tried by calling the same with miniport
handle from protocol driver ...But we r getting
NDIS_STATUS_FAILURE.....

And More over We want to call MiniportInitialize() without being
DriverEntry Called. If we use SetupDi calls that may unload driver,
which shouldn't happen...

We are searching for some way to make Ndis invoke MiniportHalt() and
then invoke MiniportInitialize(), where it can read the changed
registry settings....We will change the registry settings from our
application before making our protocol driver to invoke
MiniportHalt.....When MiniportInitialize gets called ...it can read the
changed registry settings..

Suggestions plzzzzz

Thanx in adv

---Pradeep




Stephan Wolf [MVP] wrote:
AFAIK, the only way to disable and re-enable an NDIS miniport driver is
via SetupDi. See the "...\src\setup\devcon\" sample in the DDK. Since
SetupDi can AFAIK only be used from user-mode, you will need to put the
code in e.g. some Service or a Notify Object for the protocol.

Sure there is also NdisIMDeInitializeDeviceInstance(). But this can
only be used if you have the miniport handle.

Stephan
---
haideepu wrote:
Hi experts,

I want to make Ndis call (reinvoke) my MiniportInitialize from protocol
driver. This has to be done without removing and reinserting my device.


First iam trying to make Ndis to call my MiniportHalt & then recall
MiniportInitialize.


Any suggestion welcome

Thanks in advance

.



Relevant Pages

  • Re: ReInvoking MiniportInitialize from protocol driver
    ... If we use SetupDi calls that may unload driver, ... And More over We want to call MiniportInitialize() without being ... application before making our protocol driver to invoke ...
    (microsoft.public.development.device.drivers)
  • Re: ReInvoking MiniportInitialize from protocol driver
    ... If for some reason unloading and reloading your miniport driver is not ... driver (protocol driver) that wants to force the adapter to reinitialize. ... My Objective is simple....I want to reinvoke my MiniportInitialize ... If we use SetupDi calls that may unload driver, ...
    (microsoft.public.development.device.drivers)
  • Re: ReInvoking MiniportInitialize from protocol driver
    ... My Objective is simple....I want to reinvoke my MiniportInitialize ... You want to give new registry settings to your Ndis ... The problem is is that an Ndis driver can ...
    (microsoft.public.development.device.drivers)
  • Re: ReInvoking MiniportInitialize from protocol driver
    ... Our driver doestn't have Intermediate driver ... And More over We want to call MiniportInitialize() without being ... registry settings....We will change the registry settings from our ... application before making our protocol driver to invoke ...
    (microsoft.public.development.device.drivers)
  • Re: ReInvoking MiniportInitialize from protocol driver
    ... If the same driver has other devices then disabling and enabling of one device from user mode will not unload the driver. ... Objective is ..recall MiniportInitialize without DriverEntry being ... driver (protocol driver) that wants to force the adapter to reinitialize. ...
    (microsoft.public.development.device.drivers)