~jterrell/nunitv2/nunitv2

« back to all changes in this revision

Viewing changes to tools/WiX/sdk/inc/uriutil.h

  • Committer: Charlie Poole
  • Date: 2012-02-02 01:55:11 UTC
  • mfrom: (3368.1.11 work)
  • Revision ID: charlie@nunit.org-20120202015511-0sspxs5miu16uzse
Merge changes from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-------------------------------------------------------------------------------------------------
 
2
// <copyright file="uriutil.h" company="Microsoft">
 
3
//    Copyright (c) Microsoft Corporation.  All rights reserved.
 
4
//    
 
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.
 
10
//    
 
11
//    You must not remove this notice, or any other, from this software.
 
12
// </copyright>
 
13
// 
 
14
// <summary>
 
15
//    URI helper funtions.
 
16
// </summary>
 
17
//-------------------------------------------------------------------------------------------------
 
18
 
 
19
#pragma once
 
20
 
 
21
 
 
22
#ifdef __cplusplus
 
23
extern "C" {
 
24
#endif
 
25
 
 
26
enum URI_PROTOCOL
 
27
{
 
28
    URI_PROTOCOL_UNKNOWN,
 
29
    URI_PROTOCOL_FILE,
 
30
    URI_PROTOCOL_FTP,
 
31
    URI_PROTOCOL_HTTP,
 
32
    URI_PROTOCOL_LOCAL,
 
33
    URI_PROTOCOL_UNC
 
34
};
 
35
 
 
36
 
 
37
HRESULT DAPI UriCanonicalize(
 
38
    __inout_z LPWSTR* psczUri
 
39
    );
 
40
 
 
41
HRESULT DAPI UriCrack(
 
42
    __in_z LPCWSTR wzUri,
 
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
 
50
    );
 
51
 
 
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
 
61
    );
 
62
 
 
63
HRESULT DAPI UriCanonicalize(
 
64
    __inout_z LPWSTR* psczUri
 
65
    );
 
66
 
 
67
HRESULT DAPI UriFile(
 
68
    __deref_out_z LPWSTR* psczFile,
 
69
    __in_z LPCWSTR wzUri
 
70
    );
 
71
 
 
72
HRESULT DAPI UriProtocol(
 
73
    __in_z LPCWSTR wzUri,
 
74
    __out URI_PROTOCOL* pProtocol
 
75
    );
 
76
 
 
77
HRESULT DAPI UriRoot(
 
78
    __in_z LPCWSTR wzUri,
 
79
    __out LPWSTR* ppwzRoot,
 
80
    __out_opt URI_PROTOCOL* pProtocol
 
81
    );
 
82
 
 
83
HRESULT DAPI UriResolve(
 
84
    __in_z LPCWSTR wzUri,
 
85
    __in_opt LPCWSTR wzBaseUri,
 
86
    __out LPWSTR* ppwzResolvedUri,
 
87
    __out_opt const URI_PROTOCOL* pResolvedProtocol
 
88
    );
 
89
 
 
90
#ifdef __cplusplus
 
91
}
 
92
#endif
 
93