Partager via


PathCreateFromUrlAlloc, fonction (shlwapi.h)

Crée un chemin d’accès à partir d’une URL de fichier.

Syntaxe

LWSTDAPI PathCreateFromUrlAlloc(
  [in]  PCWSTR pszIn,
  [out] PWSTR  *ppszOut,
        DWORD  dwFlags
);

Paramètres

[in] pszIn

Type : PCWSTR

Pointeur vers l’URL d’un fichier, représenté sous la forme d’une chaîne Unicode terminée par null.

[out] ppszOut

Type : PWSTR*

L’adresse d’un pointeur vers une mémoire tampon de longueur MAX_PATH que, lorsque cette fonction retourne correctement, reçoit le chemin d’accès du fichier.

dwFlags

Type : DWORD

Réservé, doit être 0.

Valeur retournée

Type : HRESULT

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

Spécifications

Requirement Valeur
Client minimum requis Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau uniquement]
plateforme cible Fenêtres
Header shlwapi.h
Library mincore_downlevel.lib
DLL Shlwapi.dll