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.

56 lines
1.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cdomcf.cxx
  7. //
  8. // Contents: Windows NT 3.5 Domain Object Class Factory Code
  9. //
  10. // CADsNamespaceCF::CreateInstance
  11. //
  12. // History: 01-30-95 krishnag Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "procs.hxx"
  16. #pragma hdrstop
  17. #include "oleds.hxx"
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Function: CADsSecurityDescriptorCF::CreateInstance
  21. //
  22. // Synopsis:
  23. //
  24. // Arguments: [pUnkOuter]
  25. // [iid]
  26. // [ppv]
  27. //
  28. // Returns: HRESULT
  29. //
  30. // Modifies:
  31. //
  32. // History: 01-30-95 krishnag Created.
  33. //----------------------------------------------------------------------------
  34. STDMETHODIMP
  35. CADsSecurityDescriptorCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  36. {
  37. HRESULT hr = E_FAIL;
  38. if (pUnkOuter)
  39. RRETURN(E_FAIL);
  40. hr = CSecurityDescriptor::CreateSecurityDescriptor(
  41. iid,
  42. ppv
  43. );
  44. RRETURN(hr);
  45. }