From 2c542da5fbdb0a3ce7dd200efb88d5acc8cf2b5f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 30 May 2009 23:07:13 +0000 Subject: [PATCH] - Export and hackplement NdisSetTimerEx - Implementation is #ifed out currently but I may enable it later - Hopefully somebody can think of a better way to do it than the current code svn path=/trunk/; revision=41213 --- reactos/drivers/network/ndis/ndis.def | 1 + reactos/drivers/network/ndis/ndis/time.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) 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 */