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.

64 lines
1.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997
  5. //
  6. // File: cmime.hxx
  7. //
  8. // Contents: MimeType object
  9. //
  10. // History: 04-1-97 krishnag Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #include "iiis.h"
  14. class CMimeType;
  15. class CMimeType : INHERIT_TRACKING,
  16. public IISMimeType
  17. {
  18. public:
  19. /* IUnknown methods */
  20. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  21. DECLARE_STD_REFCOUNTING
  22. DECLARE_IDispatch_METHODS
  23. DECLARE_IISMimeType_METHODS
  24. CMimeType::CMimeType();
  25. CMimeType::~CMimeType();
  26. HRESULT
  27. CMimeType::InitFromIISString(LPWSTR pszStr);
  28. HRESULT
  29. CMimeType::CopyMimeType(LPWSTR *ppszStr);
  30. static
  31. HRESULT
  32. CMimeType::CreateMimeType(
  33. REFIID riid,
  34. void **ppvObj
  35. );
  36. static
  37. HRESULT
  38. CMimeType::AllocateMimeTypeObject(
  39. CMimeType ** ppMimeType
  40. );
  41. protected:
  42. CAggregatorDispMgr FAR * _pDispMgr;
  43. LPWSTR _lpMimeType;
  44. LPWSTR _lpExtension;
  45. };