Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than shlwapi, prefix the name with the module name and a period.
Declare Unicode Function UrlCreateFromPath Lib "shlwapi.dll" Alias "UrlCreateFromPathW" _
(ByVal path As String, _
ByVal url As System.Text.StringBuilder, _
ByRef urlLength As System.UInt32, _
ByVal reserved As Integer _
) As Integer
Declare Function UrlCreateFromPath Lib "shlwapi.dll" (TODO) As TODO
User-Defined Types:
None.
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
The return string size will be INTERNET_MAX_URL_LENGTH (defined in wininet.h) or smaller.
Returns an HRESULT; S_FALSE indicates that the path specified was already in Url format and was copied unchanged to url.
Const INTERNET_MAX_URL_LENGTH As Integer = 2048 + 32 + 3
Private Sub urlFromPathButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles urlFromPathButton.Click
Dim sz As System.UInt32
Dim sb As System.Text.StringBuilder
Dim rc As Integer
sz = Convert.ToUInt32(INTERNET_MAX_URL_LENGTH)
sb = New System.Text.StringBuilder(INTERNET_MAX_URL_LENGTH)
Takes a (canonicalized) file URL and converts it to a Microsoft MS-DOS path. Member of the Shell Lightweight Utility API. See also: UrlCreateFromPath.
12/23/2013 8:39:09 AM - -208.242.148.4
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).