On Wed Jan 25 19:42:17 2023 +0000, Nikolay Sivov wrote:
This should probably use RtlGetInterruptTimePrecise(), but I haven't checked actual output values.
RtlGetInterruptTimePrecise is undocumented, but I was able to find a header that has a prototype. I also ran some tests and the function itself returns a value in addition to the pointer passed in the parameters.
The value of the parameter appears to always be greater than the return value of the function. I'm not sure how to implement that without knowing more about the function.