// StopwatchClassFactory.h: interface for the // CStopwatchClassFactory class. //////////////////////////////////////////////////////////////////// #if !defined(StopwatchClassFactory_H) #define StopwatchClassFactory_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include "timers_i.c" class CStopwatchClassFactory : public IClassFactory { public: CStopwatchClassFactory(); virtual ~CStopwatchClassFactory(); private: // Reference counting long m_nReferenceCount; public: // IUnknown methods HRESULT __stdcall QueryInterface( REFIID riid, void **ppvObject); unsigned long __stdcall AddRef(); unsigned long __stdcall Release(); // IClassFactory HRESULT __stdcall CreateInstance( IUnknown *pUnkOuter, REFIID riid, void **ppvObject); HRESULT __stdcall LockServer( BOOL fLock); }; #endif // !defined(StopwatchClassFactory_H)