Hello,
How do you control a network device on NT programmatical, like turning it
off and on, querying it’s status. Just like the way you control it through
the control panel.
Do you need to write a driver for it(hope not)?
Isaack
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> How do you control a network device on NT programmatical, like turning it
off and on, querying it’s status. Just like the way you control it through
the control panel.
For user mode - IOCTL_NDIS_QUERY_GLOBAL_STATS
For kernel mode - write a stupid protocol driver without send and receive paths and use NdisRequest in it.
The network adapter properties are numbered by OIDs, which have set and query semantics. IIRC this is ideologically parallel to SNMP
OIDs, though I don’t think NDIS OIDs and SNMP OIDs are the same.
Do you need to write a driver for it(hope not)?
IIRC the full functionality requires a protocol driver.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
>
> > How do you control a network device on NT programmatical, like turning
it
> > off and on, querying it’s status. Just like the way you control it
through
> > the control panel.
>
> For user mode - IOCTL_NDIS_QUERY_GLOBAL_STATS
See the PCAUSA MACADDR II sample (including source) for an illustration of
how to use IOCTL_NDIS_QUERY_GLOBAL_STATS. The URL is:
http://www.pcausa.com/Utilities/macaddr2.htm
The PCAUSA “OID Scope” is a tool that you can use to make most NDIS queries
for debug purposes. See the URL:
http://www.pcausa.com/Utilities/ndistools.htm
The IOCTL_NDIS_QUERY_GLOBAL_STATS technique only works on Windows NT and
higher.
> For kernel mode - write a stupid protocol driver without send and receive
paths and use NdisRequest in it.
>
> The network adapter properties are numbered by OIDs, which have set and
query semantics. IIRC this is ideologically parallel to SNMP
> OIDs, though I don’t think NDIS OIDs and SNMP OIDs are the same.
Read the DDK documentation.
>
> > Do you need to write a driver for it(hope not)?
>
> IIRC the full functionality requires a protocol driver.
>
Probably.
The topic of “turning it on or off” is NOT covered by the above. You’ll need
to read the DDK documentation about installation and binding control of
network devices.
Good luck,
–
Thomas F. Divine
PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
http: - http:
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>
Querying a network driver’s status already answered by Max and Thomas.
Turning a network (miniport) driver on and off: See the following
samples in the DDK:
WXP DDK: \WINDDK\2600\src\setup\enable
\WINDDK\2600\src\setup\devcon
W2K DDK: \NTDDK\src\general\setup\Enable
Stephan
On Mon, 28 Jan 2002 04:06:44 +0100, “Isaack Rasmussen”
wrote:
>
>Hello,
>
>How do you control a network device on NT programmatical, like turning it
>off and on, querying it’s status. Just like the way you control it through
>the control panel.
>
>Do you need to write a driver for it(hope not)?
>
> Isaack
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Thank you everybody for your answers, I was hoping it could be done through
a application running in Usermode, but it seems not and I don’t have time to
look into driver dev right now, so I’ll have to postpone that.
But thanks anyway, I know where to look now,
Isaack
----- Original Message -----
From: “Stephan Wolf”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Monday, January 28, 2002 2:56 PM
Subject: [ntdev] Re: Control a networkdevice
> Querying a network driver’s status already answered by Max and Thomas.
>
> Turning a network (miniport) driver on and off: See the following
> samples in the DDK:
>
> WXP DDK: \WINDDK\2600\src\setup\enable
> \WINDDK\2600\src\setup\devcon
>
> W2K DDK: \NTDDK\src\general\setup\Enable
>
> Stephan
> —
> On Mon, 28 Jan 2002 04:06:44 +0100, “Isaack Rasmussen”
> wrote:
>
> >
> >Hello,
> >
> >How do you control a network device on NT programmatical, like turning it
> >off and on, querying it’s status. Just like the way you control it
through
> >the control panel.
> >
> >Do you need to write a driver for it(hope not)?
> >
> > Isaack
>
> —
> You are currently subscribed to ntdev as: xxxxx@fantasiac.dk
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
The mentioned samples in the DDK *are* apps, not drivers.
Stephan
On Mon, 28 Jan 2002 18:46:38 +0100, “Isaack Rasmussen”
wrote:
>
>Thank you everybody for your answers, I was hoping it could be done through
>a application running in Usermode, but it seems not and I don’t have time to
>look into driver dev right now, so I’ll have to postpone that.
>
>But thanks anyway, I know where to look now,
>
> Isaack
>
>----- Original Message -----
>From: “Stephan Wolf”
>Newsgroups: ntdev
>To: “NT Developers Interest List”
>Sent: Monday, January 28, 2002 2:56 PM
>Subject: [ntdev] Re: Control a networkdevice
>
>
>> Querying a network driver’s status already answered by Max and Thomas.
>>
>> Turning a network (miniport) driver on and off: See the following
>> samples in the DDK:
>>
>> WXP DDK: \WINDDK\2600\src\setup\enable
>> \WINDDK\2600\src\setup\devcon
>>
>> W2K DDK: \NTDDK\src\general\setup\Enable
>>
>> Stephan
>> —
>> On Mon, 28 Jan 2002 04:06:44 +0100, “Isaack Rasmussen”
>> wrote:
>>
>> >
>> >Hello,
>> >
>> >How do you control a network device on NT programmatical, like turning it
>> >off and on, querying it’s status. Just like the way you control it
>through
>> >the control panel.
>> >
>> >Do you need to write a driver for it(hope not)?
>> >
>> > Isaack
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Well… I think that qualifies for another “thank you”.
If I weren’t so stuffed up with work, I would have gone through it and
figured it out myself.
Thanks again,
Isaack
----- Original Message -----
From: “Stephan Wolf”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Tuesday, January 29, 2002 2:08 PM
Subject: [ntdev] Re: Control a networkdevice
> The mentioned samples in the DDK are apps, not drivers.
>
> Stephan
> —
> On Mon, 28 Jan 2002 18:46:38 +0100, “Isaack Rasmussen”
> wrote:
>
> >
> >Thank you everybody for your answers, I was hoping it could be done
through
> >a application running in Usermode, but it seems not and I don’t have time
to
> >look into driver dev right now, so I’ll have to postpone that.
> >
> >But thanks anyway, I know where to look now,
> >
> > Isaack
> >
> >----- Original Message -----
> >From: “Stephan Wolf”
> >Newsgroups: ntdev
> >To: “NT Developers Interest List”
> >Sent: Monday, January 28, 2002 2:56 PM
> >Subject: [ntdev] Re: Control a networkdevice
> >
> >
> >> Querying a network driver’s status already answered by Max and Thomas.
> >>
> >> Turning a network (miniport) driver on and off: See the following
> >> samples in the DDK:
> >>
> >> WXP DDK: \WINDDK\2600\src\setup\enable
> >> \WINDDK\2600\src\setup\devcon
> >>
> >> W2K DDK: \NTDDK\src\general\setup\Enable
> >>
> >> Stephan
> >> —
> >> On Mon, 28 Jan 2002 04:06:44 +0100, “Isaack Rasmussen”
> >> wrote:
> >>
> >> >
> >> >Hello,
> >> >
> >> >How do you control a network device on NT programmatical, like turning
it
> >> >off and on, querying it’s status. Just like the way you control it
> >through
> >> >the control panel.
> >> >
> >> >Do you need to write a driver for it(hope not)?
> >> >
> >> > Isaack
>
> —
> You are currently subscribed to ntdev as: xxxxx@fantasiac.dk
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com