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.

48 lines
1.1 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997
  5. //
  6. // File: cmimecf.cxx
  7. //
  8. // Contents: MimeType Object Class Factory Code
  9. //
  10. // History: 04-01-97 krishnag Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. #include "iis.hxx"
  14. #pragma hdrstop
  15. //+---------------------------------------------------------------------------
  16. //
  17. // Function: CIISMimeTypeCF::CreateInstance
  18. //
  19. // Synopsis:
  20. //
  21. // Arguments: [pUnkOuter]
  22. // [iid]
  23. // [ppv]
  24. //
  25. // Returns: HRESULT
  26. //
  27. // Modifies:
  28. //
  29. // History: 01-30-95 krishnag Created.
  30. //----------------------------------------------------------------------------
  31. STDMETHODIMP
  32. CIISMimeTypeCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  33. {
  34. HRESULT hr = E_FAIL;
  35. if (pUnkOuter)
  36. RRETURN(E_FAIL);
  37. hr = CMimeType::CreateMimeType(
  38. iid,
  39. ppv
  40. );
  41. RRETURN(hr);
  42. }