11const GUID IID_IKsClockForwarder = {0x877e4352, 0x6fea, 0x11d0, {0xb8, 0x63, 0x00, 0xaa, 0x00, 0xa2, 0x16, 0xa1}};
72 m_ThreadStarted(
FALSE),
95 *
Output = (IKsObject*)(
this);
96 reinterpret_cast<IKsObject*
>(*Output)->AddRef();
#define InterlockedIncrement
#define InterlockedDecrement
#define STDMETHODCALLTYPE
HRESULT STDMETHODCALLTYPE NotifyGraphChange()
CKsClockForwarder(HANDLE handle)
STDMETHODIMP_(ULONG) Release()
HRESULT STDMETHODCALLTYPE Pause()
HRESULT STDMETHODCALLTYPE Stop()
IReferenceClock * m_Clock
HANDLE STDMETHODCALLTYPE KsGetObjectHandle()
HRESULT STDMETHODCALLTYPE Run(REFERENCE_TIME tStart)
virtual ~CKsClockForwarder()
HRESULT STDMETHODCALLTYPE SetSyncSource(IReferenceClock *pClock)
STDMETHODIMP_(ULONG) AddRef()
HRESULT STDMETHODCALLTYPE SetClockState(KSSTATE State)
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
friend DWORD WINAPI CKsClockForwarder_ThreadStartup(LPVOID lpParameter)
const GUID IID_IKsClockForwarder
HRESULT WINAPI CKsClockForwarder_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
DWORD WINAPI CKsClockForwarder_ThreadStartup(LPVOID lpParameter)
const GUID IID_IDistributorNotify
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
#define MAKE_HRESULT(sev, fac, code)
#define KSPROPERTY_TYPE_SET
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
HRESULT GetTime([out] REFERENCE_TIME *pTime)
#define IOCTL_KS_PROPERTY
#define KSPROPSETID_Clock
KSDDKAPI HRESULT WINAPI KsSynchronousDeviceControl(HANDLE Handle, ULONG IoControl, PVOID InBuffer, ULONG InLength, PVOID OutBuffer, ULONG OutLength, PULONG BytesReturned)
KSDDKAPI HRESULT WINAPI KsOpenDefaultDevice(REFGUID Category, ACCESS_MASK Access, PHANDLE DeviceHandle)
static PLARGE_INTEGER Time
#define IsEqualGUID(rguid1, rguid2)
_Check_return_ _CRTIMP clock_t __cdecl clock(void)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_ ULONG _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesReturned
DWORD WINAPI GetLastError(void)
#define OutputDebugString