NdisCloseAdapter & NdisDeregisterProtocol

Hello everybody!!!
I have such question:
when i call NdisCloseAdapter() its not return
I also use ProtocolCloseAdapter (this function executs and
returns)
It sounds strange but i do it in my driverentry(call
NdisCloseAdapter()), so is this the reason?

here some code:
DriverEntry()
{
//initialized event
NdisRegisterProtocol()
NdisOpenAdapter()

NdisCloseAdapter()//here i trace thru(on softice)and not return

if (STATUS_PENDING)
{
//Wait Event
}
}
ProtocolCloseAdapter()
{
SetEvent()//this thing execute
}


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

Hi,
After your NdisOpenAdapter() call wait for the call to complete by the
call to OpenAdapterComplete handler if the return status is not status
pending.
Regards,
Shashi


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