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.

155 lines
5.0 KiB

  1. // RestPars.hxx : Declaration of the CRestoreParser
  2. #ifndef __RESTPARS_H_
  3. #define __RESTPARS_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CRestoreParser
  7. class ATL_NO_VTABLE CRestoreParser :
  8. public CComObjectRootEx<CComMultiThreadModel>,
  9. public CComCoClass<CRestoreParser, &CLSID_TrkRestoreParser>,
  10. public ITrkRestoreParser,
  11. public IParseDisplayName,
  12. public IMoniker
  13. {
  14. public:
  15. CRestoreParser()
  16. {
  17. }
  18. DECLARE_REGISTRY_RESOURCEID(IDR_RESTPARS)
  19. BEGIN_COM_MAP(CRestoreParser)
  20. COM_INTERFACE_ENTRY(ITrkRestoreParser)
  21. COM_INTERFACE_ENTRY(IParseDisplayName)
  22. COM_INTERFACE_ENTRY(IMoniker)
  23. END_COM_MAP()
  24. public:
  25. // ITrkRestoreParser
  26. // IParseDisplayName
  27. HRESULT STDMETHODCALLTYPE ParseDisplayName(
  28. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  29. /* [in] */ LPOLESTR pszDisplayName,
  30. /* [out] */ ULONG __RPC_FAR *pchEaten,
  31. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkOut);
  32. // IMoniker
  33. /* [local] */ HRESULT STDMETHODCALLTYPE BindToObject(
  34. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  35. /* [unique][in] */ IMoniker __RPC_FAR *pmkToLeft,
  36. /* [in] */ REFIID riidResult,
  37. /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvResult);
  38. /* [local] */ HRESULT STDMETHODCALLTYPE BindToStorage(
  39. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  40. /* [unique][in] */ IMoniker __RPC_FAR *pmkToLeft,
  41. /* [in] */ REFIID riid,
  42. /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObj)
  43. { return( E_NOTIMPL ); }
  44. HRESULT STDMETHODCALLTYPE Reduce(
  45. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  46. /* [in] */ DWORD dwReduceHowFar,
  47. /* [unique][out][in] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkToLeft,
  48. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkReduced)
  49. { return( E_NOTIMPL ); }
  50. HRESULT STDMETHODCALLTYPE ComposeWith(
  51. /* [unique][in] */ IMoniker __RPC_FAR *pmkRight,
  52. /* [in] */ BOOL fOnlyIfNotGeneric,
  53. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkComposite)
  54. { return( E_NOTIMPL ); }
  55. HRESULT STDMETHODCALLTYPE Enum(
  56. /* [in] */ BOOL fForward,
  57. /* [out] */ IEnumMoniker __RPC_FAR *__RPC_FAR *ppenumMoniker)
  58. { return( E_NOTIMPL ); }
  59. HRESULT STDMETHODCALLTYPE IsEqual(
  60. /* [unique][in] */ IMoniker __RPC_FAR *pmkOtherMoniker)
  61. { return( E_NOTIMPL ); }
  62. HRESULT STDMETHODCALLTYPE Hash(
  63. /* [out] */ DWORD __RPC_FAR *pdwHash)
  64. { return( E_NOTIMPL ); }
  65. HRESULT STDMETHODCALLTYPE IsRunning(
  66. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  67. /* [unique][in] */ IMoniker __RPC_FAR *pmkToLeft,
  68. /* [unique][in] */ IMoniker __RPC_FAR *pmkNewlyRunning)
  69. { return( E_NOTIMPL ); }
  70. HRESULT STDMETHODCALLTYPE GetTimeOfLastChange(
  71. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  72. /* [unique][in] */ IMoniker __RPC_FAR *pmkToLeft,
  73. /* [out] */ FILETIME __RPC_FAR *pFileTime)
  74. { return( E_NOTIMPL ); }
  75. HRESULT STDMETHODCALLTYPE Inverse(
  76. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmk)
  77. { return( E_NOTIMPL ); }
  78. HRESULT STDMETHODCALLTYPE CommonPrefixWith(
  79. /* [unique][in] */ IMoniker __RPC_FAR *pmkOther,
  80. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkPrefix)
  81. { return( E_NOTIMPL ); }
  82. HRESULT STDMETHODCALLTYPE RelativePathTo(
  83. /* [unique][in] */ IMoniker __RPC_FAR *pmkOther,
  84. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkRelPath)
  85. { return( E_NOTIMPL ); }
  86. HRESULT STDMETHODCALLTYPE GetDisplayName(
  87. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  88. /* [unique][in] */ IMoniker __RPC_FAR *pmkToLeft,
  89. /* [out] */ LPOLESTR __RPC_FAR *ppszDisplayName)
  90. { return( E_NOTIMPL ); }
  91. HRESULT STDMETHODCALLTYPE ParseDisplayName(
  92. /* [unique][in] */ IBindCtx __RPC_FAR *pbc,
  93. /* [unique][in] */ IMoniker __RPC_FAR *pmkToLeft,
  94. /* [in] */ LPOLESTR pszDisplayName,
  95. /* [out] */ ULONG __RPC_FAR *pchEaten,
  96. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmkOut)
  97. { return( E_NOTIMPL ); }
  98. HRESULT STDMETHODCALLTYPE IsSystemMoniker(
  99. /* [out] */ DWORD __RPC_FAR *pdwMksys)
  100. { return( E_NOTIMPL ); }
  101. // IPersist
  102. HRESULT STDMETHODCALLTYPE GetClassID(
  103. /* [out] */ CLSID __RPC_FAR *pClassID)
  104. { return( E_NOTIMPL ); }
  105. // IPersistStream
  106. HRESULT STDMETHODCALLTYPE IsDirty( void)
  107. { return( E_NOTIMPL ); }
  108. HRESULT STDMETHODCALLTYPE Load(
  109. /* [unique][in] */ IStream __RPC_FAR *pStm)
  110. { return( E_NOTIMPL ); }
  111. HRESULT STDMETHODCALLTYPE Save(
  112. /* [unique][in] */ IStream __RPC_FAR *pStm,
  113. /* [in] */ BOOL fClearDirty)
  114. { return( E_NOTIMPL ); }
  115. HRESULT STDMETHODCALLTYPE GetSizeMax(
  116. /* [out] */ ULARGE_INTEGER __RPC_FAR *pcbSize)
  117. { return( E_NOTIMPL ); }
  118. private:
  119. CMachineId _mcid;
  120. };
  121. #endif //__RESTPARS_H_