How to get system time in a mirror driver

Hi, everyone! I wanna get system time or “tickcount” in mirror driver, but I can’t find some function like “EngGetTickCount” in the MSDN, could someone give me some advice how to get time in a mirror driver?
Thanks a lot!

Hi,

take a look at EngQueryPerformanceCounter() and EngQueryPerformanceFrequency().
("… A driver should call this routine sparingly … ")

Best regards,

Markus

328192084@163.com wrote:

Hi, everyone! I wanna get system time or “tickcount” in mirror driver, but I can’t find some function like “EngGetTickCount” in the MSDN, could someone give me some advice how to get time in a mirror driver?

You do have EngQueryLocalTime and EngQueryPerformanceCounter. It turns
out that EngGetTickCount certainly is exported from Win32K.sys, although
there’s no declaration in winddi.h so you’d have to write your own.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thank you Markus and Tim, I was too careless to notice that, I will study on that next.