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.

48 lines
1.1 KiB

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