From: Steve Dispensa on
Are you calling NdisMIndicateStatusComplete() too? Otherwise, put debug
logging around your status indications and OID answers about media state and
watch what happens in the debugger window while your icon is changing.

-sd


On 7/20/06 8:30 AM, in article O92jhCArGHA.3908(a)TK2MSFTNGP05.phx.gbl,
"Arsalan Ahmad" <arsal__(a)hotmail.com> wrote:

> I created a timer and called NdisMIndicateStatus to set media status to
> disconnected. Timer function is being called after 3 sec but even then my
> adapter is tryint to acquire IP address instead of showing cable disconnect
> message. Can anyone please tell me what am I missing?
>
> Thanks,
>
> Arsalan
>
> "Maxim S. Shatskih" <maxim(a)storagecraft.com> wrote in message
> news:OXvQoZ3qGHA.4424(a)TK2MSFTNGP05.phx.gbl...
>> Both things must be done. Both responding to media status OID and
>> firing
>> NdisMIndicateStatus if the media status have changed.
>>
>> --
>> Maxim Shatskih, Windows DDK MVP
>> StorageCraft Corporation
>> maxim(a)storagecraft.com
>> http://www.storagecraft.com
>>
>> "QuasiCodo" <BillAlexander(a)Yahoo.com> wrote in message
>> news:Oxj1zI0qGHA.3648(a)TK2MSFTNGP03.phx.gbl...
>>> Arsalan:
>>>
>>> If I remember correctly, I think you need to use NdisMIndicateStatus().
>>>
>>> ((&->
>>>
>>> "Arsalan Ahmad" <arsal__(a)hotmail.com> wrote in message
>>> news:OsC9P8zqGHA.4408(a)TK2MSFTNGP04.phx.gbl...
>>>> Hi,
>>>>
>>>> I have created a virtual LAN driver. The driver when installed shows
>>>> status of acquiring IP where as I want to show cable disconnect status.
>>>> How can I do so?
>>>>
>>>> Even in MiniportQueryInformation() I am returning
>>>> NdisMediaStateDisconnected but no use.
>>>>
>>>> Thanks,
>>>>
>>>> Arsalan
>>>>
>>>
>>>
>>
>
>