KsCreateClock2 function

Creates a handle to a clock instance. Call this function after the Component Object Model (COM) is initialized.

Supported starting in Windows 8.

Syntax

KSDDKAPI HRESULT KsCreateClock2(
  HANDLE          ConnectionHandle,
  PKSCLOCK_CREATE ClockCreate,
  PHANDLE         ClockHandle
);

Parameters

ConnectionHandle

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

ClockCreate

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

ClockHandle

Specifies the new clock handle.

Return Value

Returns NOERROR if successful; otherwise, returns an error code.

Remarks

This is a new version of the KsCreateClock function and uses the device broker to create the handle to the kernel streaming object. In addition, the COM CoInitialize function must be called before this function is called.

Requirements

   
Windows version Windows 8 Windows Server 2012
Target Platform Universal
Header ks.h (include Ks.h)
IRQL PASSIVE_LEVEL

See Also

CoInitialize

KsCreateClock