Update UNRAR.H
[xy_vsfilter.git] / src / filters / BaseClasses / sysclock.h
blobd17f7a21cd4c7bcf1594702c2417449b8a4a0b40
1 //------------------------------------------------------------------------------
2 // File: SysClock.h
3 //
4 // Desc: DirectShow base classes - defines a system clock implementation of
5 // IReferenceClock.
6 //
7 // Copyright (c) 1992-2002 Microsoft Corporation. All rights reserved.
8 //------------------------------------------------------------------------------
11 #ifndef __SYSTEMCLOCK__
12 #define __SYSTEMCLOCK__
15 // Base clock. Uses timeGetTime ONLY
16 // Uses most of the code in the base reference clock.
17 // Provides GetTime
20 class CSystemClock : public CBaseReferenceClock, public IAMClockAdjust, public IPersist
22 public:
23 // We must be able to create an instance of ourselves
24 static CUnknown * WINAPI CreateInstance(LPUNKNOWN pUnk, HRESULT *phr);
25 CSystemClock(TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr);
27 DECLARE_IUNKNOWN
29 STDMETHODIMP NonDelegatingQueryInterface(REFIID riid,void ** ppv);
31 // Yield up our class id so that we can be persisted
32 // Implement required Ipersist method
33 STDMETHODIMP GetClassID(CLSID *pClsID);
35 // IAMClockAdjust methods
36 STDMETHODIMP SetClockDelta(REFERENCE_TIME rtDelta);
37 }; //CSystemClock
39 #endif /* __SYSTEMCLOCK__ */