Share via


Fonction SHSaveLibraryInFolderPath (shobjidl_core.h)

Enregistre un objet IShellLibrary sur le disque.

Syntaxe

HRESULT SHSaveLibraryInFolderPath(
  [in]            IShellLibrary    *plib,
  [in]            PCWSTR           pszFolderPath,
  [in]            PCWSTR           pszLibraryName,
  [in]            LIBRARYSAVEFLAGS lsf,
  [out, optional] PWSTR            *ppszSavedToPath
);

Paramètres

[in] plib

Type : IShellLibrary*

Pointeur vers l’objet IShellLibrary à enregistrer.

[in] pszFolderPath

Type : PCWSTR

Pointeur vers le chemin d’accès au dossier dans lequel enregistrer la bibliothèque.

[in] pszLibraryName

Type : PCWSTR

Pointeur vers un nom de fichier sous lequel enregistrer la bibliothèque. Le nom de fichier ne doit pas inclure l’extension de nom de fichier. L’extension de nom de fichier est ajoutée automatiquement.

[in] lsf

Type : LIBRARYSAVEFLAGS

Valeur de l’énumération LIBRARYSAVEFLAGS qui spécifie comment gérer une collision de nom de bibliothèque.

[out, optional] ppszSavedToPath

Type : PWSTR*

Pointeur vers une chaîne qui, lorsque cette fonction retourne correctement, reçoit le chemin d’accès au fichier de description de la bibliothèque dans lequel la bibliothèque a été enregistrée. Si ce chemin n’est pas obligatoire, la valeur de ce paramètre peut être NULL.

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::Save .

Configuration requise

   
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 (inclure Shobjidl.h)

Voir aussi

IShellLibrary

IShellLibrary::Save

IShellLibrary::SaveInKnownFolder