PathCreateFromUrlA function

Converts a file URL to a Microsoft MS-DOS path.

Syntax

LWSTDAPI PathCreateFromUrlA(
  PCSTR pszUrl,
  PSTR  pszPath,
  DWORD *pcchPath,
  DWORD dwFlags
);

Parameters

pszUrl

Type: PCTSTR

A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.

pszPath

Type: PTSTR

A pointer to a buffer that, when this function returns successfully, receives the MS-DOS path. You must set the size of this buffer to MAX_PATH to ensure that it is large enough to hold the returned string.

pcchPath

Type: DWORD*

The number of characters in the pszPath buffer.

dwFlags

Type: DWORD

Reserved. Set this parameter to NULL.

Return value

Type: HRESULT

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

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 5.0 or later)