UrlIsFileUrl function
Tests a URL to determine if it is a file URL.
Syntax
BOOL UrlIsFileUrl( LPCTSTR pszUrl );
Parameters
- pszUrl
-
Type: LPCTSTR
A pointer to a null-terminated string containing the URL.
Return value
Type: BOOL
Returns a nonzero value if the URL is a file URL, or zero otherwise.
Remarks
A file URL has the form "File:// xxx". UrlIsFileUrl is actually one of the following macros, depending on whether ANSI or Unicode is selected.
#define UrlIsFileUrlA(pszURL) UrlIsA(pszURL, URLIS_FILEURL) #define UrlIsFileUrlW(pszURL) UrlIsW(pszURL, URLIS_FILEURL)
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 |
UrlIsFileUrlW (Unicode) and UrlIsFileUrlA (ANSI) |
See also