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.

70 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1995.
  5. //
  6. // File: ole.hxx
  7. //
  8. // Contents: Class factory, etc, for all OLE objects:
  9. // CShare and CShareCopyHook
  10. //
  11. // History: 6-Apr-95 BruceFo Created
  12. //
  13. //----------------------------------------------------------------------------
  14. #ifndef __OLE_HXX__
  15. #define __OLE_HXX__
  16. //////////////////////////////////////////////////////////////////////////////
  17. class CShareCF : public IClassFactory
  18. {
  19. public:
  20. //
  21. // IUnknown methods
  22. //
  23. STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppvObj);
  24. STDMETHOD_(ULONG,AddRef)();
  25. STDMETHOD_(ULONG,Release)();
  26. //
  27. // IClassFactory methods
  28. //
  29. STDMETHOD(CreateInstance)(
  30. IUnknown* pUnkOuter,
  31. REFIID riid,
  32. LPVOID* ppvObj);
  33. STDMETHOD(LockServer)(BOOL fLock);
  34. };
  35. //////////////////////////////////////////////////////////////////////////////
  36. class CShareCopyHookCF : public IClassFactory
  37. {
  38. public:
  39. //
  40. // IUnknown methods
  41. //
  42. STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppvObj);
  43. STDMETHOD_(ULONG,AddRef)();
  44. STDMETHOD_(ULONG,Release)();
  45. //
  46. // IClassFactory methods
  47. //
  48. STDMETHOD(CreateInstance)(
  49. IUnknown* pUnkOuter,
  50. REFIID riid,
  51. LPVOID* ppvObj);
  52. STDMETHOD(LockServer)(BOOL fLock);
  53. };
  54. #endif // __OLE_HXX__