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.

27 lines
500 B

  1. #ifndef __ITESTCLASSFACT_H__
  2. #define __ITESTCLASSFACT_H__
  3. class CTestFactory : public IClassFactory
  4. {
  5. public:
  6. //IUnknown
  7. STDMETHOD (QueryInterface) (REFIID riid, LPVOID* ppv);
  8. STDMETHOD_(ULONG, AddRef) ();
  9. STDMETHOD_(ULONG, Release) ();
  10. //IClassFactory
  11. STDMETHOD (CreateInstance) (IUnknown* pUnkOuter, REFIID riid, LPVOID* ppv);
  12. STDMETHOD (LockServer) (BOOL bLock);
  13. //constructor/destructor
  14. CTestFactory();
  15. ~CTestFactory();
  16. protected:
  17. LONG m_cRef;
  18. };
  19. #endif //__ITESTCLASSFACT_H__