programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of using the standard methof using the UI of the network properties to load it? .

Thanks

-Johnny

 


Get your FREE download of MSN Explorer at http://explorer.msn.com.

For >= 2k you can use netcfg which comes with the ddk. It’s in src\network\config\netcfg

-scott

----- Original Message -----
From: Johnny D
To: NT Developers Interest List
Sent: Monday, May 20, 2002 11:09 AM
Subject: [ntdev] programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of using the standard methof using the UI of the network properties to load it? .

Thanks

-Johnny


Get your FREE download of MSN Explorer at http://explorer.msn.com.

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%

If you just want to unload / load … may think of using the sequence of
OpenSCManager
mk:
OpenService
mk:
Startservice ControlService …

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Monday, May 20, 2002 8:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

For >= 2k you can use netcfg which comes with the ddk. It’s in
src\network\config\netcfg

-scott

----- Original Message -----
From: Johnny mailto:xxxxx D
To: NT Developers mailto:xxxxx Interest List
Sent: Monday, May 20, 2002 11:09 AM
Subject: [ntdev] programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of
using the standard methof using the UI of the network properties to load it?
.

Thanks

-Johnny

_____

Get your FREE download of MSN Explorer at http://explorer.msn.com
http: .

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%</mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mk:></mk:>

AFAIK this sequence won’t work in loading/unloading NDIS drivers, you need to use the INetCfg interface

-scott

----- Original Message -----
From: Arup Banerjee
To: NT Developers Interest List
Sent: Wednesday, May 22, 2002 6:53 AM
Subject: [ntdev] Re: programmatic load/unload

If you just want to unload / load … may think of using the sequence of OpenSCManager OpenService Startservice ControlService …

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Monday, May 20, 2002 8:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

For >= 2k you can use netcfg which comes with the ddk. It’s in src\network\config\netcfg

-scott

----- Original Message -----
From: Johnny D
To: NT Developers Interest List
Sent: Monday, May 20, 2002 11:09 AM
Subject: [ntdev] programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of using the standard methof using the UI of the network properties to load it? .

Thanks

-Johnny


Get your FREE download of MSN Explorer at http://explorer.msn.com.

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%

INetCfg interface is implemented by Notifier Object … not NDIS driver …
and NDIS doesn’t say its mandatory to have a Notifier Object for every NDIS
driver that u develop …

Just install one “NDIS” driver with a plain inf … no notifier … and just
issue the command “Net start driver-name” … ur driver would get loaded …
and unloaded with “Net stop drivername” …

“Net start/stop” does something like the sequence that I had talked about

Hmmm … maybe if u want to start/stop a protocol driver automatically upon
install/uninstall then probably u may even think of implementing the
sequence inside ur notifier object … This is undocumented … but I have
done something like this in order to incorporate this auto feature while
developing one Token Ring driver for Compaq.

.

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Wednesday, May 22, 2002 6:57 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

AFAIK this sequence won’t work in loading/unloading NDIS drivers, you need
to use the INetCfg interface

-scott

----- Original Message -----

From: Arup mailto:xxxxx Banerjee
To: NT Developers mailto:xxxxx Interest List
Sent: Wednesday, May 22, 2002 6:53 AM
Subject: [ntdev] Re: programmatic load/unload

If you just want to unload / load … may think of using the sequence of
OpenSCManager
mk:
OpenService
mk:
Startservice ControlService …

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Monday, May 20, 2002 8:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

For >= 2k you can use netcfg which comes with the ddk. It’s in
src\network\config\netcfg

-scott

----- Original Message -----
From: Johnny D mailto:xxxxx
To: NT mailto:xxxxx Developers Interest List
Sent: Monday, May 20, 2002 11:09 AM
Subject: [ntdev] programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of
using the standard methof using the UI of the network properties to load it?
.

Thanks

-Johnny

_____

Get your FREE download of MSN Explorer at http://explorer.msn.com
http: .

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%</mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mk:></mk:></mailto:xxxxx></mailto:xxxxx>

Right. I interpreted the initial post as looking for a way to install/uninstall NDIS drivers (i.e. automating the installing of the INF). If you check out the snetcfg source *it* uses the INetCfg interface to install/uninstall network components. Your NDIS driver does not need a notifier object to use this utility

-scott
----- Original Message -----
From: Arup Banerjee
To: NT Developers Interest List
Sent: Wednesday, May 22, 2002 10:08 AM
Subject: [ntdev] Re: programmatic load/unload

INetCfg interface is implemented by Notifier Object … not NDIS driver … and NDIS doesn’t say its mandatory to have a Notifier Object for every NDIS driver that u develop …

Just install one “NDIS” driver with a plain inf … no notifier … and just issue the command “Net start driver-name” … ur driver would get loaded … and unloaded with “Net stop drivername” …

“Net start/stop” does something like the sequence that I had talked about …

Hmmm … maybe if u want to start/stop a protocol driver automatically upon install/uninstall then probably u may even think of implementing the sequence inside ur notifier object … This is undocumented … but I have done something like this in order to incorporate this auto feature while developing one Token Ring driver for Compaq.

.

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Wednesday, May 22, 2002 6:57 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

AFAIK this sequence won’t work in loading/unloading NDIS drivers, you need to use the INetCfg interface

-scott

----- Original Message -----
From: Arup Banerjee
To: NT Developers Interest List
Sent: Wednesday, May 22, 2002 6:53 AM
Subject: [ntdev] Re: programmatic load/unload

If you just want to unload / load … may think of using the sequence of OpenSCManager OpenService Startservice ControlService …

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Monday, May 20, 2002 8:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

For >= 2k you can use netcfg which comes with the ddk. It’s in src\network\config\netcfg

-scott

----- Original Message -----
From: Johnny D
To: NT Developers Interest List
Sent: Monday, May 20, 2002 11:09 AM
Subject: [ntdev] programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of using the standard methof using the UI of the network properties to load it? .

Thanks

-Johnny


Get your FREE download of MSN Explorer at http://explorer.msn.com.

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Wednesday, May 22, 2002 7:58 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

Right. I interpreted the initial post as looking for a way to
install/uninstall NDIS drivers (i.e. automating the installing of the INF).
“automating the installing of the INF” Nope Notifer is not used for
automating any installing of the INF … there is no need to install INF …
u still have to use the inf to even install the Notifier and declare it.

Notifier is used for having finer controls like Raising custom UI specific
to ur driver … having control over the install process … having finer
control over the binding and unbinding stage , when the driver binds to the
upper and lower edge stacks … making custom registry entries … and over
PnpReconfiguration …

If you check out the snetcfg source *it* uses the INetCfg interface to
install/uninstall network components. Your NDIS driver does not need a
notifier object to use this utility

-scott

----- Original Message -----
From: Arup mailto:xxxxx Banerjee
To: NT Developers mailto:xxxxx Interest List
Sent: Wednesday, May 22, 2002 10:08 AM
Subject: [ntdev] Re: programmatic load/unload

INetCfg interface is implemented by Notifier Object … not NDIS driver …
and NDIS doesn’t say its mandatory to have a Notifier Object for every NDIS
driver that u develop …

Just install one “NDIS” driver with a plain inf … no notifier … and just
issue the command “Net start driver-name” … ur driver would get loaded …
and unloaded with “Net stop drivername” …

“Net start/stop” does something like the sequence that I had talked about


Hmmm … maybe if u want to start/stop a protocol driver automatically upon
install/uninstall then probably u may even think of implementing the
sequence inside ur notifier object … This is undocumented … but I have
done something like this in order to incorporate this auto feature while
developing one Token Ring driver for Compaq.

.

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Wednesday, May 22, 2002 6:57 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

AFAIK this sequence won’t work in loading/unloading NDIS drivers, you need
to use the INetCfg interface

-scott

----- Original Message -----

From: Arup mailto:xxxxx Banerjee
To: NT mailto:xxxxx Developers Interest List
Sent: Wednesday, May 22, 2002 6:53 AM
Subject: [ntdev] Re: programmatic load/unload

If you just want to unload / load … may think of using the sequence of
OpenSCManager
mk:
OpenService
mk:
Startservice ControlService …

-----Original Message-----
From: Scott Noone [mailto:xxxxx@handsfreenetworks.com]
Sent: Monday, May 20, 2002 8:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: programmatic load/unload

For >= 2k you can use netcfg which comes with the ddk. It’s in
src\network\config\netcfg

-scott

----- Original Message -----
From: Johnny D mailto:xxxxx
To: NT mailto:xxxxx Developers Interest List
Sent: Monday, May 20, 2002 11:09 AM
Subject: [ntdev] programmatic load/unload

Is there an easy programmatic way to load / unload my NDIS driver instead of
using the standard methof using the UI of the network properties to load it?
.

Thanks

-Johnny

_____

Get your FREE download of MSN Explorer at http://explorer.msn.com
http: .

You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
mailto:xxxxx
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@handsfreenetworks.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%</mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mk:></mk:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>