PFNKSCLOCK_GETTIME callback function (ks.h)

The routine gets system time.

KStrClockGetTime is a system-supplied routine that retrieves the current system time.

KStrClockGetPhysicalTime is a system-supplied routine that retrieves the current system time minus any suspended delta.

Syntax

PFNKSCLOCK_GETTIME PfnksclockGettime;

LONGLONG PfnksclockGettime(
  [in] PFILE_OBJECT FileObject
)
{...}

Parameters

[in] FileObject

A pointer to the FILE_OBJECT structure to which a handle was returned when the clock instance was created.

Return value

This routine returns the requested time value as a value of type LONGLONG. This value is specified in 100 nanosecond units.

Remarks

You can obtain an entry point for this routine by supplying a driver-allocated KSCLOCK_FUNCTIONTABLE structure in a KSPROPERTY_CLOCK_FUNCTIONTABLE request.

Requirements

Requirement Value
Target Platform Desktop
Header ks.h (include Ks.h)

See also

KSCLOCK_FUNCTIONTABLE

KSPROPERTY_CLOCK_FUNCTIONTABLE