diff --git a/reactos/drivers/network/ndis/ndis.def b/reactos/drivers/network/ndis/ndis.def index bdabe651f55..b5ca7c67035 100644 --- a/reactos/drivers/network/ndis/ndis.def +++ b/reactos/drivers/network/ndis/ndis.def @@ -257,6 +257,7 @@ NdisSetPacketCancelId@8 NdisSetPacketPoolProtocolId@8 ;NdisSetProtocolFilter ? NdisSetTimer@8 +NdisSetTimerEx@12 NdisSetupDmaTransfer@24 NdisSystemProcessorCount@0 NdisTerminateWrapper@8 diff --git a/reactos/drivers/network/ndis/ndis/time.c b/reactos/drivers/network/ndis/ndis/time.c index 1a9fb77ba33..26b454e0e3f 100644 --- a/reactos/drivers/network/ndis/ndis/time.c +++ b/reactos/drivers/network/ndis/ndis/time.c @@ -243,5 +243,26 @@ NdisSetTimer( KeSetTimer (&Timer->Timer, Timeout, &Timer->Dpc); } +VOID +EXPORT +NdisSetTimerEx( + IN PNDIS_TIMER Timer, + IN UINT MillisecondsToDelay, + IN PVOID FunctionContext) +{ +#if 0 + /* FIXME: I'm not sure how to this in a nice way + * We can't store the function context anywhere in NDIS_TIMER + * so I'm forced to do this + */ + + Timer->Dpc.DeferredContext = FunctionContext; + + NdisSetTimer(Timer, MillisecondsToDelay); +#else + UNIMPLEMENTED +#endif +} + /* EOF */