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.

68 lines
2.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: CAsyncMk.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 10-25-95 JohannP (Johann Posch) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. class FAR CAsyncMoniker : public IMoniker
  18. {
  19. public:
  20. // *** IUnknown methods ***
  21. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj);
  22. STDMETHOD_(ULONG,AddRef) (THIS);
  23. // Release has to implemented by the derived class
  24. // *** IPersistStream methods ***
  25. STDMETHOD(IsDirty) (THIS);
  26. STDMETHOD(Load) (THIS_ LPSTREAM pStm);
  27. STDMETHOD(Save) (THIS_ LPSTREAM pStm,BOOL fClearDirty);
  28. STDMETHOD(GetSizeMax) (THIS_ ULARGE_INTEGER FAR * pcbSize);
  29. // *** IMoniker methods ***
  30. STDMETHOD(BindToObject) (THIS_ LPBC pbc, LPMONIKER pmkToLeft,
  31. REFIID riidResult, LPVOID FAR* ppvResult);
  32. STDMETHOD(BindToStorage) (THIS_ LPBC pbc, LPMONIKER pmkToLeft,
  33. REFIID riid, LPVOID FAR* ppvObj);
  34. STDMETHOD(Reduce) (THIS_ LPBC pbc, DWORD dwReduceHowFar, LPMONIKER FAR*
  35. ppmkToLeft, LPMONIKER FAR * ppmkReduced);
  36. STDMETHOD(ComposeWith) (THIS_ LPMONIKER pmkRight, BOOL fOnlyIfNotGeneric,
  37. LPMONIKER FAR* ppmkComposite);
  38. STDMETHOD(Enum) (THIS_ BOOL fForward, LPENUMMONIKER FAR* ppenumMoniker);
  39. STDMETHOD(IsEqual) (THIS_ LPMONIKER pmkOtherMoniker);
  40. STDMETHOD(Hash) (THIS_ LPDWORD pdwHash);
  41. STDMETHOD(IsRunning) (THIS_ LPBC pbc, LPMONIKER pmkToLeft, LPMONIKER
  42. pmkNewlyRunning);
  43. STDMETHOD(GetTimeOfLastChange) (THIS_ LPBC pbc, LPMONIKER pmkToLeft,
  44. FILETIME FAR* pfiletime);
  45. STDMETHOD(Inverse) (THIS_ LPMONIKER FAR* ppmk);
  46. STDMETHOD(CommonPrefixWith) (LPMONIKER pmkOther, LPMONIKER FAR*
  47. ppmkPrefix);
  48. STDMETHOD(RelativePathTo) (THIS_ LPMONIKER pmkOther, LPMONIKER FAR*
  49. ppmkRelPath);
  50. STDMETHOD(GetDisplayName) (THIS_ LPBC pbc, LPMONIKER pmkToLeft,
  51. LPWSTR FAR* lplpszDisplayName);
  52. STDMETHOD(ParseDisplayName) (THIS_ LPBC pbc, LPMONIKER pmkToLeft,
  53. LPWSTR lpszDisplayName, ULONG FAR* pchEaten,
  54. LPMONIKER FAR* ppmkOut);
  55. STDMETHOD(IsSystemMoniker) (THIS_ LPDWORD pdwMksys);
  56. private:
  57. ULONG m_refs;
  58. protected:
  59. CAsyncMoniker(void) { m_refs = 0; }
  60. };
  61.