I should have seen from the original post that you are using the wrong function. The function you described takes an existing share (mapped network drive for example) and resolves the mapping (server name from mapped drive letter, for example).
You are looking for the URI for a local file, there is a simple .NET function to do that.