ClassFactory.h

00001 
00002 #ifndef CLASSFACTORY_H_119fb1ec_35c1_43ee_957a_fe7132b3c24b
00003 #define CLASSFACTORY_H_119fb1ec_35c1_43ee_957a_fe7132b3c24b
00004 
00005 #include <unknwn.h>
00006 
00007 class QUuid;
00008 
00009 class ClassFactory
00010 :
00011   public IClassFactory
00012 {
00013   public:
00014 
00015   // IUnknown
00016   HRESULT __stdcall QueryInterface( const IID & iid, void ** ppv );
00017   ULONG __stdcall AddRef();
00018   ULONG __stdcall Release();
00019 
00020   // IClassFactory
00021   HRESULT __stdcall CreateInstance( IUnknown * pUnkOuter, const IID & iid, void ** ppv );
00022   HRESULT __stdcall LockServer( BOOL lock );
00023 
00024   // ctor/dtor
00025   ClassFactory( const QUuid & clsid );
00026   virtual ~ClassFactory();
00027 
00028   // internals
00029   static LONG s_serverLocks;
00030   DWORD dwRegister;
00031 
00032 };
00033 
00034 
00035 
00036 #endif // #ifndef FACTORY_H_119fb1ec_35c1_43ee_957a_fe7132b3c24b
00037 




~ ~ ~ ~ ~ ~
Don't create Texas sized problems...
Comment your Code!
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC