Source code of Windows XP (NT5)
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.

50 lines
1.1 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cdnstrcf.cxx
  7. //
  8. // Contents: DN With String Object class factory
  9. //
  10. // CADsDNWithStringCF::CreateInstance
  11. //
  12. // History: 04-26-1999 AjayR Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "procs.hxx"
  16. #pragma hdrstop
  17. #include "oleds.hxx"
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Function: CADsDNWithStringCF::CreateInstance
  21. //
  22. // Synopsis:
  23. //
  24. // Arguments: [pUnkOuter]
  25. // [iid]
  26. // [ppv]
  27. //
  28. // Returns: HRESULT
  29. //
  30. //----------------------------------------------------------------------------
  31. STDMETHODIMP
  32. CADsDNWithStringCF::CreateInstance(IUnknown * pUnkOuter,
  33. REFIID iid, LPVOID * ppv)
  34. {
  35. HRESULT hr = E_FAIL;
  36. if (pUnkOuter)
  37. RRETURN(E_FAIL);
  38. hr = CDNWithString::CreateDNWithString(
  39. iid,
  40. ppv
  41. );
  42. RRETURN(hr);
  43. }