1
//-------------------------------------------------------------------------------------------------
2
// <copyright file="uriutil.h" company="Microsoft">
3
// Copyright (c) Microsoft Corporation. All rights reserved.
5
// The use and distribution terms for this software are covered by the
6
// Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php)
7
// which can be found in the file CPL.TXT at the root of this distribution.
8
// By using this software in any fashion, you are agreeing to be bound by
9
// the terms of this license.
11
// You must not remove this notice, or any other, from this software.
15
// URI helper funtions.
17
//-------------------------------------------------------------------------------------------------
37
HRESULT DAPI UriCanonicalize(
38
__inout_z LPWSTR* psczUri
41
HRESULT DAPI UriCrack(
43
__out_opt INTERNET_SCHEME* pScheme,
44
__deref_opt_out_z LPWSTR* psczHostName,
45
__out_opt INTERNET_PORT* pPort,
46
__deref_opt_out_z LPWSTR* psczUser,
47
__deref_opt_out_z LPWSTR* psczPassword,
48
__deref_opt_out_z LPWSTR* psczPath,
49
__deref_opt_out_z LPWSTR* psczQueryString
52
HRESULT DAPI UriCreate(
53
__inout_z LPWSTR* psczUri,
54
__in INTERNET_SCHEME scheme,
55
__in_z_opt LPWSTR wzHostName,
56
__in INTERNET_PORT port,
57
__in_z_opt LPWSTR wzUser,
58
__in_z_opt LPWSTR wzPassword,
59
__in_z_opt LPWSTR wzPath,
60
__in_z_opt LPWSTR wzQueryString
63
HRESULT DAPI UriCanonicalize(
64
__inout_z LPWSTR* psczUri
68
__deref_out_z LPWSTR* psczFile,
72
HRESULT DAPI UriProtocol(
74
__out URI_PROTOCOL* pProtocol
79
__out LPWSTR* ppwzRoot,
80
__out_opt URI_PROTOCOL* pProtocol
83
HRESULT DAPI UriResolve(
85
__in_opt LPCWSTR wzBaseUri,
86
__out LPWSTR* ppwzResolvedUri,
87
__out_opt const URI_PROTOCOL* pResolvedProtocol