KsCreateClock function (ks.h)

The KsCreateClock function creates a handle to a clock instance.

Syntax

KSDDKAPI NTSTATUS KsCreateClock(
  [in]  HANDLE          ConnectionHandle,
  [in]  PKSCLOCK_CREATE ClockCreate,
  [out] PHANDLE         ClockHandle
);

Parameters

[in] ConnectionHandle

Specifies the handle to the connection on which to create the clock.

[in] ClockCreate

Specifies clock create parameters. This currently consists of a flag that must be set to zero.

[out] ClockHandle

Specifies the new clock handle.

Return value

The KsCreateClock function returns STATUS_SUCCESS if successful, or it returns an error on clock creation failure.

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib
IRQL PASSIVE_LEVEL