The second parameter to NdisInitializeTimer() is a function (address of
function) that will be called when the timer expires. It is a function you
must write and must have a specific parameter definition.
When the timer expires, the system calls this function at IRQL ==
DISPATCH_LEVEL.
Within reason and the constraints of IRQL, you can then do what you want.
This is all very clearly documented in the WDK.
Moreover, there is a perfectly good example of how to use this function in
the sample
src\network\ndis\netvmini\sys\miniport.c
I found that in 15 seconds by using a file search for NdisInitializeTimer()
on the WDK src folder.
Good Luck,
Dave Cattley
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hcl.in
Sent: Monday, August 24, 2009 8:06 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] NdisInitializetimer issues
Hi,
i have used NdisInitializetimer and Ndissettimer apis in my intermediate
driver.
My question here is that, in the
VOID NdisInitializeTimer(
PNDIS_TIMER Timer,
PNDIS_TIMER_FUNCTION TimerFunction,
PVOID FunctionContext
);
how can i use that 2nd parameter as my callback function, actually i want
to implement one timer functionality , once the timer expires, it should
call the respective callback function.
i am using NdisSetTimer Function, after the expiry of time, how the callback
function will be called
Thanks,
Balaji
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer