PathCreateFromUrl function
Converts a file URL to a Microsoft MS-DOS path.
Syntax
HRESULT PathCreateFromUrl( _In_ PCTSTR pszUrl, _Out_ PTSTR pszPath, _Inout_ DWORD *pcchPath, DWORD dwFlags );
Parameters
- pszUrl [in]
-
Type: PCTSTR
A null-terminated string of maximum length INTERNET_MAX_URL_LENGTH that contains the URL.
- pszPath [out]
-
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 [in, out]
-
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] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
PathCreateFromUrlW (Unicode) and PathCreateFromUrlA (ANSI) |