// ks.h
PFNKSCORRELATEDTIME Pfnkscorrelatedtime;
LONGLONG Pfnkscorrelatedtime(
[in] PVOID Context,
[out] PLONGLONG SystemTime
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
A streaming minidriver's KStrCorrelatedTime routine is called to retrieve both the presentation time and physical time in a correlated manner. This allows the clock owner to completely determine the current time.
Context [in]Pointer to the minidriver-supplied information context. The minidriver passes the information context to KsAllocateDefaultClockEx in the function's DeferredContext parameter when the minidriver allocates a custom DPC timer object.
SystemTime [out]Specifies a pointer to a variable that receives the performance counter frequency.
Returns the value of the performance counter in units of ticks.
Typically, if a minidriver supplies a KStrCorrelatedTime callback function, the minidriver must also supply KStrSetTimer and KStrCancelTimer callback functions.
The minidriver-supplied KStrCorrelatedTimer must have the same characteristics as KeQueryPerformanceCounter.