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, 1997.
  5. //
  6. // File: I P E R S I S T F . C P P
  7. //
  8. // Contents: IPersistFolder implementation for CConnectionFolder
  9. //
  10. // Notes:
  11. //
  12. // Author: jeffspr 22 Sep 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #pragma hdrstop
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Member: CUPnPDeviceFolder::Initialize
  20. //
  21. // Purpose: IPersistFolder::Initialize implementation for
  22. // CUPnPDeviceFolder
  23. //
  24. // Arguments:
  25. // pidl []
  26. //
  27. // Returns:
  28. //
  29. // Author: jeffspr 22 Sep 1997
  30. //
  31. // Notes:
  32. //
  33. STDMETHODIMP CUPnPDeviceFolder::Initialize(
  34. LPCITEMIDLIST pidl)
  35. {
  36. HRESULT hr = S_OK;
  37. TraceTag(ttidShellFolderIface, "OBJ: CCF - IPersistFolder::Initialize");
  38. // Store the pidl for the relative position in the namespace. We'll
  39. // use this later to generate absolute pidls
  40. //
  41. m_pidlFolderRoot = ILClone(pidl);
  42. // This should always be valid
  43. //
  44. AssertSz(m_pidlFolderRoot, "Hey, we should have a valid folder pidl");
  45. return hr;
  46. }