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.

57 lines
1.3 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996
  5. //
  6. // File: cnamcf.cxx
  7. //
  8. // Contents: NetWare compatible Namespace Object Class Factory Code
  9. //
  10. // CNWCOMPATNamespaceCF::CreateInstance
  11. //
  12. // History: Mar-04-96 t-ptam Migrated.
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "nwcompat.hxx"
  16. #pragma hdrstop
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Function: CNWCOMPATNamespaceCF::CreateInstance
  20. //
  21. // Synopsis:
  22. //
  23. // Arguments: [pUnkOuter]
  24. // [iid]
  25. // [ppv]
  26. //
  27. // Returns: HRESULT
  28. //
  29. // Modifies:
  30. //
  31. // History: Mar-04-96 t-ptam Migrated.
  32. //----------------------------------------------------------------------------
  33. STDMETHODIMP
  34. CNWCOMPATNamespaceCF::CreateInstance(IUnknown * pUnkOuter, REFIID iid, LPVOID * ppv)
  35. {
  36. HRESULT hr = S_OK;
  37. if (pUnkOuter)
  38. RRETURN(E_FAIL);
  39. hr = CNWCOMPATNamespace::CreateNamespace(
  40. L"ADs:",
  41. L"NWCOMPAT:",
  42. ADS_OBJECT_BOUND,
  43. iid,
  44. ppv
  45. );
  46. RRETURN(hr);
  47. }