mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-21 07:56:22 +08:00
20 lines
458 B
C
20 lines
458 B
C
#pragma once
|
|
|
|
typedef struct _KTIMER_TABLE_ENTRY {
|
|
ULONG_PTR Lock;
|
|
LIST_ENTRY Entry;
|
|
ULARGE_INTEGER Time;
|
|
}KTIMER_TABLE_ENTRY,*PKTIMER_TABLE_ENTRY;
|
|
|
|
struct KernelTimerData;
|
|
struct DpcTimerInfo;
|
|
struct KernelTimer {
|
|
void Init();
|
|
bool SetOneShot(LARGE_INTEGER interval,PKDPC Dpc);
|
|
bool SetPeriod(LARGE_INTEGER interval,ULONG period,PKDPC Dpc);
|
|
void Cancel();
|
|
|
|
static void EnumKernelTimer(KernelTimerData* pData,DpcTimerInfo* pInfo);
|
|
|
|
KTIMER _Timer;
|
|
}; |