Export (0) Print
Expand All

SHAddFolderPathToLibrary function

Adds a folder to a library.

Syntax


HRESULT SHAddFolderPathToLibrary(
  _In_  IShellLibrary *plib,
  _In_  PCWSTR pszFolderPath
);

Parameters

plib [in]

Type: IShellLibrary*

Pointer to an IShellLibrary object to which to add the folder.

pszFolderPath [in]

Type: PCWSTR

The folder to add, specified by path.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This is an inline helper function that wraps the IShellLibrary::AddFolder method.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

See also

SHRemoveFolderPathFromLibrary
SHLoadLibraryFromItem
SHLoadLibraryFromKnownFolder
SHLoadLibraryFromParsingName
IShellLibrary
IShellLibrary::AddFolder
IShellLibrary::RemoveFolder
IShellLibrary::LoadLibraryFromItem
IShellLibrary::LoadLibraryFromKnownFolder

 

 

Community Additions

ADD
Show:
© 2014 Microsoft