[NDISUIO]

Add required PnPEventHandler
CORE-8292

svn path=/trunk/; revision=63916
This commit is contained in:
Hervé Poussineau 2014-08-22 19:13:31 +00:00
parent ce2f155e05
commit b36bcbb154
3 changed files with 25 additions and 0 deletions

View file

@ -74,6 +74,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
Chars.MinorNdisVersion = NDIS_MINOR_VERSION; Chars.MinorNdisVersion = NDIS_MINOR_VERSION;
Chars.OpenAdapterCompleteHandler = NduOpenAdapterComplete; Chars.OpenAdapterCompleteHandler = NduOpenAdapterComplete;
Chars.CloseAdapterCompleteHandler = NduCloseAdapterComplete; Chars.CloseAdapterCompleteHandler = NduCloseAdapterComplete;
Chars.PnPEventHandler = NduNetPnPEvent;
Chars.SendCompleteHandler = NduSendComplete; Chars.SendCompleteHandler = NduSendComplete;
Chars.TransferDataCompleteHandler = NduTransferDataComplete; Chars.TransferDataCompleteHandler = NduTransferDataComplete;
Chars.ResetCompleteHandler = NduResetComplete; Chars.ResetCompleteHandler = NduResetComplete;

View file

@ -134,6 +134,11 @@ NTAPI
NduCloseAdapterComplete(NDIS_HANDLE ProtocolBindingContext, NduCloseAdapterComplete(NDIS_HANDLE ProtocolBindingContext,
NDIS_STATUS Status); NDIS_STATUS Status);
NDIS_STATUS
NTAPI
NduNetPnPEvent(NDIS_HANDLE ProtocolBindingContext,
PNET_PNP_EVENT NetPnPEvent);
VOID VOID
NTAPI NTAPI
NduSendComplete(NDIS_HANDLE ProtocolBindingContext, NduSendComplete(NDIS_HANDLE ProtocolBindingContext,

View file

@ -40,6 +40,25 @@ NduCloseAdapterComplete(NDIS_HANDLE ProtocolBindingContext,
KeSetEvent(&AdapterContext->AsyncEvent, IO_NO_INCREMENT, FALSE); KeSetEvent(&AdapterContext->AsyncEvent, IO_NO_INCREMENT, FALSE);
} }
NDIS_STATUS
NTAPI
NduNetPnPEvent(NDIS_HANDLE ProtocolBindingContext,
PNET_PNP_EVENT NetPnPEvent)
{
DPRINT("NetPnPEvent\n");
switch (NetPnPEvent->NetEvent)
{
case NetEventQueryRemoveDevice:
/* Nothing to do */
return NDIS_STATUS_SUCCESS;
default:
DPRINT1("NetPnPEvent unimplemented for net event 0x%x\n", NetPnPEvent->NetEvent);
return NDIS_STATUS_FAILURE;
}
}
VOID VOID
NTAPI NTAPI
NduSendComplete(NDIS_HANDLE ProtocolBindingContext, NduSendComplete(NDIS_HANDLE ProtocolBindingContext,