help on KeSetTimer(Ex) in driverEntry

Hi all,

I’ve tried to setup a timer and associated a DPC with it in DriverEntry,

KeInitializeDpc(&(GlobalDPC), MyDpcProcedure, NULL);
LARGE_INTEGER liInterval = LiCvt(-90000000);
KeInitializeTimerEx(&(GlobalTimer), NotificationTimer);
BOOLEAN bStatus = KeSetTimerEx(&(GlobalTimer), LiInterval, 20000, NULL);

And in MyDpcProcedure, I just do a KdPrint.

However, the MyDpcProcedure never get called.

Can anyone help me on the necessary steps to setup the timer to invoke a
routine at a specified interval ?

Thanx,

Jack(Wei-Chi) Cheng

Try to change the NULL argument in KeSetTimerEx
to the Dpc pointer &(GlobalDPC) :slight_smile:

Paul

-----P?vodn? zpr?va-----
Od: xxxxx@erinet.com [SMTP:xxxxx@erinet.com]
Odesl?no: 26. ?ervna 2000 22:59
Komu: File Systems Developers
P?edm?t: [ntfsd] help on KeSetTimer(Ex) in driverEntry

Hi all,

I’ve tried to setup a timer and associated a DPC with it in DriverEntry,

KeInitializeDpc(&(GlobalDPC), MyDpcProcedure, NULL);
LARGE_INTEGER liInterval = LiCvt(-90000000);
KeInitializeTimerEx(&(GlobalTimer), NotificationTimer);
BOOLEAN bStatus = KeSetTimerEx(&(GlobalTimer), LiInterval, 20000, NULL);

And in MyDpcProcedure, I just do a KdPrint.

However, the MyDpcProcedure never get called.

Can anyone help me on the necessary steps to setup the timer to invoke a
routine at a specified interval ?

Thanx,

Jack(Wei-Chi) Cheng


You are currently subscribed to ntfsd as: xxxxx@sodatsw.cz
To unsubscribe send a blank email to $subst(‘Email.Unsub’)