NdisMIndicateStatusEx not works

Hello,
I work with Ndis6 miniport driver but there is a problem with NdisMIndicateStatusEx.
The driver works fine except the fact that NdisMIndicateStatusEx not works and therefore OID_GEN_MEDIA_CONNECT_STATUS_EX are not presented in DebugView although this OID is supported on OIDs list.
The media state is updated only through NdisMSetMiniportAttributes during initialization (NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES , MediaConnectState ) and still OID_GEN_MEDIA_CONNECT_STATUS_EX are not appeared. Therefore if I set MediaConnectStateConnected the driver starts the traffic and everything fine.
But I need to be able to change the network media status after initialization from unplugged/MediaConnectStateDisconnected to MediaConnectStateConnected.
What can cause NdisMIndicateStatusEx not to update the new link status.
Thanks in advance,
Alex.

At least in some NDIS 6 drivers you can use NdisMIndicateStatusEx or
NdisFIndicateStatus to make a NDIS_LINK_STATE status indication that
indicates connection state.

Good luck!

Thomas F. Divine
http://www.pcausa.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, April 9, 2013 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] NdisMIndicateStatusEx not works

Hello,
I work with Ndis6 miniport driver but there is a problem with
NdisMIndicateStatusEx.
The driver works fine except the fact that NdisMIndicateStatusEx not works
and therefore OID_GEN_MEDIA_CONNECT_STATUS_EX are not presented in DebugView
although this OID is supported on OIDs list.
The media state is updated only through NdisMSetMiniportAttributes during
initialization (NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES , MediaConnectState
) and still OID_GEN_MEDIA_CONNECT_STATUS_EX are not appeared. Therefore if I
set MediaConnectStateConnected the driver starts the traffic and everything
fine.
But I need to be able to change the network media status after
initialization from unplugged/MediaConnectStateDisconnected to
MediaConnectStateConnected.
What can cause NdisMIndicateStatusEx not to update the new link status.
Thanks in advance,
Alex.


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Isn’t it a problem that in msdn is said:
Miniport drivers indicate status by calling the NdisMIndicateStatusEx function. Filter drivers call the NdisFIndicateStatus function?
Thanks

Hi Thomas ,
How to use NdisFIndicateStatus to get the Connectivity status. Do you any sample code for this. I tried with this but every time i am getting status as “unknown”

What is the chance that a funciton being used by hundreds of network drivers around the world is broken?

What is not working is your code, and judging from your previous post you are not indicating a connected status which is why your link is dying.

Hi matt,
I fixed my problem… Thanks for advising…

Rajendra