home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / BaseClasses / sysclock.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.2 KB  |  40 lines

  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(LPUNKNOWN pUnk, HRESULT *phr);
  25.     CSystemClock(TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr);
  26.  
  27.     DECLARE_IUNKNOWN
  28.  
  29.     STDMETHODIMP NonDelegatingQueryInterface(REFIID riid,void ** ppv);
  30.  
  31.     // Yield up our class id so that we can be persisted
  32.     // Implement required Ipersist method
  33.     STDMETHODIMP GetClassID(CLSID *pClsID);
  34.  
  35.     //  IAMClockAdjust methods
  36.     STDMETHODIMP SetClockDelta(REFERENCE_TIME rtDelta);
  37. }; //CSystemClock
  38.  
  39. #endif /* __SYSTEMCLOCK__ */
  40.