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.

50 lines
1.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cdnbincf.cxx
  7. //
  8. // Contents: DN With Binary Object class factory
  9. //
  10. // CADsDNWithBinaryCF::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: CADsDNWithBinaryCF::CreateInstance
  21. //
  22. // Synopsis:
  23. //
  24. // Arguments: [pUnkOuter]
  25. // [iid]
  26. // [ppv]
  27. //
  28. // Returns: HRESULT
  29. //
  30. //----------------------------------------------------------------------------
  31. STDMETHODIMP
  32. CADsDNWithBinaryCF::CreateInstance(IUnknown * pUnkOuter,
  33. REFIID iid, LPVOID * ppv)
  34. {
  35. HRESULT hr = E_FAIL;
  36. if (pUnkOuter)
  37. RRETURN(E_FAIL);
  38. hr = CDNWithBinary::CreateDNWithBinary(
  39. iid,
  40. ppv
  41. );
  42. RRETURN(hr);
  43. }