UrlHistoryLibrary/Win32api.cs
/// <summary>
/// Takes a URL string and converts it into canonical form
/// </summary>
/// <param name="pszUrl">URL string</param>
/// <param name="dwFlags">shlwapi_URL Enumeration. Flags that specify how the URL is converted to canonical form.</param>
/// <returns>The converted URL</returns>
Takes a URL string and converts it into canonical form
Takes a URL string and converts it into canonical form
public static string CannonializeURL(string pszUrl, shlwapi_URL dwFlags)
		{
			StringBuilder buff = new StringBuilder(260);
			int s = buff.Capacity;
			int c = UrlCanonicalize(pszUrl , buff,ref s, dwFlags);
			if(c ==0)
				return buff.ToString();
			else
			{
				buff.Capacity = s;
				c = UrlCanonicalize(pszUrl , buff,ref s, dwFlags);
				return buff.ToString();
			}
		}
public static string CannonializeURL ( string pszUrl , shlwapi_URL dwFlags ) { StringBuilder buff = new StringBuilder ( 260 ) ; int s = buff . Capacity ; int c = UrlCanonicalize ( pszUrl , buff , ref s , dwFlags ) ; if ( c == 0 ) return buff . ToString ( ) ; else { buff . Capacity = s ; c = UrlCanonicalize ( pszUrl , buff , ref s , dwFlags ) ; return buff . ToString ( ) ; } }
Takes a URL string and converts it into canonical form
Takes a URL string and converts it into canonical form
The converted URL
The converted URL
pszUrl
string
None
dwFlags
shlwapi_URL
shlwapi_URL Enumeration. Flags that specify how the URL is converted to canonical form.
shlwapi_URL Enumeration . Flags that specify how the URL is converted to canonical form .