// ks.h
KSDDKAPI HRESULT KsCreateClock2(
[in] HANDLE ConnectionHandle,
[in] PKSCLOCK_CREATE ClockCreate,
[out] PHANDLE ClockHandle
);
View the official Windows Driver Kit DDI referenceNo description available.
Creates a handle to a clock instance. Call this function after the Component Object Model (COM) is initialized.
Supported starting in Windows 8.
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.
Returns NOERROR if successful; otherwise, returns an error code.
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.