Hi,All:
I want to build a miniport driver by NDIS,I want to control my NIC from miniport driver.One way I find in DDK is use Query or Set Information function provide by NDIS,but use this mothod,we must build my own protocol driver two send
this request.
I want to use IRP to communicate with use mode application,such as CreateFile,but when the miniport register to NDIS.The ndis library take over the IRP. I want to create addition device in miniport and can use IRP.Then I will needn’t build addition control protocol driver.
Who can tell me is it possible and how could I do?
Sincerely thinks.
???y˫???+.n?+???u?ڲ˛??^r*D???kN???r??zǧu??jy???^j???ׯ??? 0?j?b??(??(
Assuming you’re writing an NDIS 5 (Win2K/XP) driver, use
NdisMRegisterDevice.
Scott
Xudavid asked:
Hi,All:
I want to build a miniport driver by NDIS,I want to control my NIC
from miniport driver.One way I find in DDK is use Query or Set
Information function provide by NDIS,but use this mothod,we must build my
own protocol driver two send this request.I want to use IRP to communicate with use mode application,such as
CreateFile,but when the miniport register to NDIS.The ndis library take
over the IRP. I want to create addition device in miniport and can use
IRP.Then I will needn’t build addition control protocol driver.
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
To send OIDs directly to your miniport use DeviceIoControl with
IOCTL_NDIS_QUERY_GLOBAL_STATS for the control code:
DeviceIoControl(
hDevice,
IOCTL_NDIS_QUERY_GLOBAL_STATS,
&oidCode,
sizeof(oidCode),
pszBuffer,
*dwBufferLength,
&dwReturnedLength,
NULL
) )
-----Original Message-----
From: xxxxx@troikanetworks.com [mailto:xxxxx@troikanetworks.com]
Sent: Wednesday, June 27, 2001 2:22 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to control miniport from user mode
Assuming you’re writing an NDIS 5 (Win2K/XP) driver, use
NdisMRegisterDevice.
Scott
Xudavid asked:
Hi,All:
I want to build a miniport driver by NDIS,I want to control my NIC
from miniport driver.One way I find in DDK is use Query or Set
Information function provide by NDIS,but use this mothod,we must build my
own protocol driver two send this request.I want to use IRP to communicate with use mode application,such as
CreateFile,but when the miniport register to NDIS.The ndis library take
over the IRP. I want to create addition device in miniport and can use
IRP.Then I will needn’t build addition control protocol driver.
You are currently subscribed to ntdev as: xxxxx@envara.com
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
Try NdisMRegisterDevice.
----- Original Message -----
From: xudavid
To: NT Developers Interest List
Sent: Wednesday, June 27, 2001 6:07 AM
Subject: [ntdev] how to control miniport from user mode
Hi,All:
I want to build a miniport driver by NDIS,I want to control my NIC from miniport driver.One way I find in DDK is use Query or Set Information function provide by NDIS,but use this mothod,we must build my own protocol driver two send
this request.
I want to use IRP to communicate with use mode application,such as CreateFile,but when the miniport register to NDIS.The ndis library take over the IRP. I want to create addition device in miniport and can use IRP.Then I will needn’t build addition control protocol driver.
Who can tell me is it possible and how could I do?
Sincerely thinks.
b???.???????v??ׯjɚ???ځ?+i??d??{.n???zwZnV??隊[h???z{]z?x?yb??(??(
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! Scott,Roman Geller,Maxim,Thanks for your help
I will try function NdisMRegisterDevice.
If I succeed,I will make a report for it.
david
???y˫???+.n?+???u?ڲ˛??^r*D???kN???r??zǧu??jy???^j???ׯ??? 0?j?b??(??(
you can use DeviceIoControl with IOCTL_NDIS_QUERY_GLOBAL_STATS in the user
mode without NdisMRegisterDevice in your driver.
Send DeviceIoControl to the device that PnP created on your behalf.
RG
-----Original Message-----
From: xudavid [mailto:xudavid@263.net]
Sent: Thursday, June 28, 2001 3:08 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to control miniport from user mode
Thank you! Scott,Roman Geller,Maxim,Thanks for your help
I will try function NdisMRegisterDevice.
If I succeed,I will make a report for it.
david
b???m???>.??zf?-?%y??z?^??y??b??(?
?(
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
Roman Geller:
If I don’t call NdisMRegisterDevice,when I call CreateFile,which device could I open?
----- Original Message -----
From: “Roman Geller”
To: “NT Developers Interest List”
Sent: Thursday, June 28, 2001 5:02 PM
Subject: [ntdev] Re: how to control miniport from user mode
you can use DeviceIoControl with IOCTL_NDIS_QUERY_GLOBAL_STATS in the user
mode without NdisMRegisterDevice in your driver.
Send DeviceIoControl to the device that PnP created on your behalf
—
You are currently subscribed to ntdev as: xxxxx@citiz.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
???y˫???+.n?+???u?ڲ˛??^r*D???kN???r??zǧu??jy???^j???ׯ??? 0?j?b??(??(