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.

66 lines
1.3 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. CAssemblyCacheItemStream.h
  5. Abstract:
  6. Like a CFileStream (its base) but also implements Commit over
  7. associated CAssemblyCacheItem. This functionality was
  8. moved out of CFileStream.
  9. Author:
  10. Jay Krell (a-JayK, JayKrell) June 2000
  11. Revision History:
  12. --*/
  13. #if !defined(_FUSION_SXS_CASSEMBLYCACHEITEMSTREAM_H_INCLUDED_)
  14. #define _FUSION_SXS_CASSEMBLYCACHEITEMSTREAM_H_INCLUDED_
  15. #pragma once
  16. #include "objidl.h"
  17. #include "sxsasmitem.h"
  18. #include "filestream.h"
  19. #include "smartref.h"
  20. class CAssemblyCacheItem;
  21. class CAssemblyCacheItemStream : public CReferenceCountedFileStream
  22. {
  23. private:
  24. typedef CReferenceCountedFileStream Base;
  25. public:
  26. CAssemblyCacheItemStream() : Base()
  27. {
  28. }
  29. ~CAssemblyCacheItemStream()
  30. {
  31. }
  32. STDMETHODIMP Commit(
  33. DWORD grfCommitFlags
  34. )
  35. {
  36. HRESULT hr = NOERROR;
  37. FN_TRACE_HR(hr);
  38. PARAMETER_CHECK(grfCommitFlags == 0);
  39. IFCOMFAILED_EXIT(Base::Commit(grfCommitFlags));
  40. hr = NOERROR;
  41. Exit:
  42. return hr;
  43. }
  44. private: // intentionally not implemented
  45. CAssemblyCacheItemStream(const CAssemblyCacheItemStream&);
  46. void operator=(const CAssemblyCacheItemStream&);
  47. };
  48. #endif