Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

  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. #ifndef __SYSTEMCLOCK__
  10. #define __SYSTEMCLOCK__
  11. //
  12. // Base clock. Uses timeGetTime ONLY
  13. // Uses most of the code in the base reference clock.
  14. // Provides GetTime
  15. //
  16. class CSystemClock : public CBaseReferenceClock, public IAMClockAdjust, public IPersist
  17. {
  18. public:
  19. // We must be able to create an instance of ourselves
  20. static CUnknown * WINAPI CreateInstance(LPUNKNOWN pUnk, HRESULT *phr);
  21. CSystemClock(TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr);
  22. DECLARE_IUNKNOWN
  23. STDMETHODIMP NonDelegatingQueryInterface(REFIID riid,void ** ppv);
  24. // Yield up our class id so that we can be persisted
  25. // Implement required Ipersist method
  26. STDMETHODIMP GetClassID(CLSID *pClsID);
  27. // IAMClockAdjust methods
  28. STDMETHODIMP SetClockDelta(REFERENCE_TIME rtDelta);
  29. }; //CSystemClock
  30. #endif /* __SYSTEMCLOCK__ */