mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Implement and register a ProtocolUnbindAdapter handler
svn path=/trunk/; revision=40804
This commit is contained in:
parent
1aa2291065
commit
c26be6ccf9
1 changed files with 11 additions and 0 deletions
|
@ -1266,6 +1266,16 @@ NDIS_STATUS LANUnregisterAdapter(
|
|||
return NdisStatus;
|
||||
}
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
ProtocolUnbindAdapter(
|
||||
PNDIS_STATUS Status,
|
||||
NDIS_HANDLE ProtocolBindingContext,
|
||||
NDIS_HANDLE UnbindContext)
|
||||
{
|
||||
/* We don't pend any unbinding so we can just ignore UnbindContext */
|
||||
*Status = LANUnregisterAdapter((PLAN_ADAPTER)ProtocolBindingContext);
|
||||
}
|
||||
|
||||
NTSTATUS LANRegisterProtocol(
|
||||
PNDIS_STRING Name)
|
||||
|
@ -1304,6 +1314,7 @@ NTSTATUS LANRegisterProtocol(
|
|||
ProtChars.StatusCompleteHandler = ProtocolStatusComplete;
|
||||
ProtChars.BindAdapterHandler = ProtocolBindAdapter;
|
||||
ProtChars.PnPEventHandler = ProtocolPnPEvent;
|
||||
ProtChars.UnbindAdapterHandler = ProtocolUnbindAdapter;
|
||||
|
||||
/* Try to register protocol */
|
||||
NdisRegisterProtocol(&NdisStatus,
|
||||
|
|
Loading…
Reference in a new issue