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.

53 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. // CADsLagreIntegerCF::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: CADsLargeIntegerCF::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. CADsLargeIntegerCF::CreateInstance(IUnknown * pUnkOuter,
  36. REFIID iid, LPVOID * ppv)
  37. {
  38. HRESULT hr = E_FAIL;
  39. if (pUnkOuter)
  40. RRETURN(E_FAIL);
  41. hr = CLargeInteger::CreateLargeInteger(
  42. iid,
  43. ppv
  44. );
  45. RRETURN(hr);
  46. }
  47.