Debian Codegraph @

sys/directshow/strmbase/baseclasses/sysclock.h

raw
1 //------------------------------------------------------------------------------
2 // File: SysClock.h
3 //
4 // Desc: DirectShow base classes - defines a system clock implementation of
5 // IReferenceClock.
6 //
7 // Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
8 //------------------------------------------------------------------------------
9
10
11 #ifndef __SYSTEMCLOCK__
12 #define __SYSTEMCLOCK__
13
14 //
15 // Base clock. Uses timeGetTime ONLY
16 // Uses most of the code in the base reference clock.
17 // Provides GetTime
18 //
19
20 class CSystemClock : public CBaseReferenceClock, public IAMClockAdjust, public IPersist
21 {
22 public:
23 // We must be able to create an instance of ourselves
24 static CUnknown * WINAPI CreateInstance(__inout_opt LPUNKNOWN pUnk, __inout HRESULT *phr);
25 CSystemClock(__in_opt LPCTSTR pName, __inout_opt LPUNKNOWN pUnk, __inout HRESULT *phr);
26
27 DECLARE_IUNKNOWN
28
29 STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, __deref_out void ** ppv);
30
31 // Yield up our class id so that we can be persisted
32 // Implement required Ipersist method
33 STDMETHODIMP GetClassID(__out CLSID *pClsID);
34
35 // IAMClockAdjust methods
36 STDMETHODIMP SetClockDelta(REFERENCE_TIME rtDelta);
37 }; //CSystemClock
38
39 #endif /* __SYSTEMCLOCK__ */