Leaked source code of windows server 2003
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.

32 lines
737 B

  1. #ifndef _BASESNAP_H_
  2. #define _BASESNAP_H_
  3. STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppvObj);
  4. STDAPI DllCanUnloadNow(void);
  5. ULONG g_uObjects = 0;
  6. ULONG g_uSrvLock = 0;
  7. class CClassFactory : public IClassFactory
  8. {
  9. private:
  10. ULONG m_cref;
  11. public:
  12. enum FACTORY_TYPE {COMPONENT = 0, ABOUT = 1};
  13. CClassFactory(FACTORY_TYPE factoryType);
  14. ~CClassFactory();
  15. STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppv);
  16. STDMETHODIMP_(ULONG) AddRef();
  17. STDMETHODIMP_(ULONG) Release();
  18. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID *);
  19. STDMETHODIMP LockServer(BOOL);
  20. private:
  21. FACTORY_TYPE m_factoryType;
  22. };
  23. #endif _BASESNAP_H_