KsCreateClock2 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

KSDDKAPI HRESULT KsCreateClock2(
  [in]  HANDLE          ConnectionHandle,
  [in]  PKSCLOCK_CREATE ClockCreate,
  [out] PHANDLE         ClockHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-kscreateclock2)

KsCreateClock2 function

Description

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

Supported starting in Windows 8.

Parameters

ConnectionHandle [in]

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

ClockCreate [in]

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

ClockHandle [out]

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.

See also

CoInitialize

KsCreateClock