mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Implement and register a ProtocolUnbindAdapter handler
svn path=/trunk/; revision=40804
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user