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.
59 lines
1.4 KiB
59 lines
1.4 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1997.
|
|
//
|
|
// File: I P E R S I S T F . C P P
|
|
//
|
|
// Contents: IPersistFolder implementation for CConnectionFolder
|
|
//
|
|
// Notes:
|
|
//
|
|
// Author: jeffspr 22 Sep 1997
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
#include "pch.h"
|
|
#pragma hdrstop
|
|
|
|
#include "foldinc.h" // Standard shell\folder includes
|
|
#include "ncperms.h" // Permissions (policies)
|
|
|
|
|
|
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// Member: CConnectionFolder::Initialize
|
|
//
|
|
// Purpose: IPersistFolder::Initialize implementation for
|
|
// CConnectionFolder
|
|
//
|
|
// Arguments:
|
|
// pidl []
|
|
//
|
|
// Returns:
|
|
//
|
|
// Author: jeffspr 22 Sep 1997
|
|
//
|
|
// Notes:
|
|
//
|
|
STDMETHODIMP CConnectionFolder::Initialize(
|
|
IN LPCITEMIDLIST pidl)
|
|
{
|
|
HRESULT hr = S_OK;
|
|
|
|
TraceFileFunc(ttidShellFolderIface);
|
|
|
|
// Store the pidl for the relative position in the namespace. We'll
|
|
// use this later to generate absolute pidls
|
|
//
|
|
hr = m_pidlFolderRoot.InitializeFromItemIDList(pidl);
|
|
|
|
// This should always be valid
|
|
//
|
|
AssertSz(!m_pidlFolderRoot.empty(), "Hey, we should have a valid folder pidl");
|
|
|
|
return hr;
|
|
}
|