- 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
This commit is contained in:
Cameron Gutman 2009-05-30 23:07:13 +00:00
parent f52414693c
commit 2c542da5fb
2 changed files with 22 additions and 0 deletions

View file

@ -257,6 +257,7 @@ NdisSetPacketCancelId@8
NdisSetPacketPoolProtocolId@8
;NdisSetProtocolFilter ?
NdisSetTimer@8
NdisSetTimerEx@12
NdisSetupDmaTransfer@24
NdisSystemProcessorCount@0
NdisTerminateWrapper@8

View file

@ -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 */