Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Creates a path from a file URL.
Syntax
LWSTDAPI PathCreateFromUrlAlloc(
[in] PCWSTR pszIn,
[out] PWSTR *ppszOut,
DWORD dwFlags
);
Parameters
[in] pszIn
Type: PCWSTR
A pointer to the URL of a file, represented as a null-terminated, Unicode string.
[out] ppszOut
Type: PWSTR*
The address of a pointer to a buffer of length MAX_PATH that, when this function returns successfully, receives the file path.
dwFlags
Type: DWORD
Reserved, must be 0.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Target Platform | Windows |
| Header | shlwapi.h |
| Library | mincore_downlevel.lib |
| DLL | Shlwapi.dll |