Share via


Fonction SHAddFolderPathToLibrary (shobjidl_core.h)

Ajoute un dossier à une bibliothèque.

Syntaxe

HRESULT SHAddFolderPathToLibrary(
  [in] IShellLibrary *plib,
  [in] PCWSTR        pszFolderPath
);

Paramètres

[in] plib

Type : IShellLibrary*

Pointeur vers un objet IShellLibrary auquel ajouter le dossier.

[in] pszFolderPath

Type : PCWSTR

Dossier à ajouter, spécifié par chemin d’accès.

Valeur retournée

Type : HRESULT

Si cette fonction réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Remarques

Il s’agit d’une fonction d’assistance inline qui encapsule la méthode IShellLibrary ::AddFolder .

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (incluez Shobjidl.h)

Voir aussi

IShellLibrary

IShellLibrary ::AddFolder

IShellLibrary ::LoadLibraryFromItem

IShellLibrary ::LoadLibraryFromKnownFolder

IShellLibrary ::RemoveFolder

SHLoadLibraryFromItem

SHLoadLibraryFromKnownFolder

SHLoadLibraryFromParsingName

SHRemoveFolderPathFromLibrary