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: cipseccf.cxx
  7. //
  8. // Contents: Windows NT 4.0 IP Security Object Class Factory Code
  9. //
  10. // CIISIPSecurityCF::CreateInstance
  11. //
  12. // History: 21-04-97 sophiac Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "iis.hxx"
  16. #pragma hdrstop
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Function: CIISIPSecurityCF::CreateInstance
  20. //
  21. // Synopsis:
  22. //
  23. // Arguments: [pUnkOuter]
  24. // [iid]
  25. // [ppv]
  26. //
  27. // Returns: HRESULT
  28. //
  29. // Modifies:
  30. //
  31. // History: 21-04-97 sophiac Created.
  32. //----------------------------------------------------------------------------
  33. STDMETHODIMP
  34. CIISIPSecurityCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  35. {
  36. HRESULT hr = E_FAIL;
  37. if (pUnkOuter)
  38. RRETURN(E_FAIL);
  39. hr = CIPSecurity::CreateIPSecurity(
  40. iid,
  41. ppv
  42. );
  43. RRETURN(hr);
  44. }