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.

55 lines
1.2 KiB

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