home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / sysclock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-15  |  1.3 KB  |  41 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. // System Clock implementation of IReferenceClock
  12. // SYSCLOCK.H
  13.  
  14. #ifndef __SYSTEMCLOCK__
  15. #define __SYSTEMCLOCK__
  16.  
  17. //
  18. // Base clock.  Uses timeGetTime ONLY
  19. // Uses most of the code in the base reference clock.
  20. // Provides GetTime
  21. //
  22.  
  23. class CSystemClock : public CBaseReferenceClock, public IPersist
  24. {
  25. public:
  26.     // We must be able to create an instance of ourselves
  27.     static CUnknown *CreateInstance(LPUNKNOWN pUnk, HRESULT *phr);
  28.     CSystemClock(TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr);
  29.  
  30.     DECLARE_IUNKNOWN
  31.  
  32.     STDMETHODIMP NonDelegatingQueryInterface(REFIID riid,void ** ppv);
  33.  
  34.     // Yield up our class id so that we can be persisted
  35.     // (Ipersist method inherited through CBaseReferenceClock)
  36.     STDMETHODIMP GetClassID(CLSID *pClsID);
  37.  
  38. }; //CSystemClock
  39.  
  40. #endif /* __SYSTEMCLOCK__ */
  41.