asptlb.idl 3.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/*
 * Copyright (C) 2010 Alistair Leslie-Hughes
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

import "unknwn.idl";
import "objidl.idl";
import "oaidl.idl";

[
    object,
    dual,
    uuid(D97A6DA0-A864-11cf-83BE-00A0C90C2BD8)
]
interface IRequestDictionary : IDispatch
{
    [propget]
31
    HRESULT Item([in, optional] VARIANT Var, [retval, out] VARIANT *pVariantReturn);
32 33

    [restricted, propget]
34
    HRESULT _NewEnum([retval, out] IUnknown **ppEnumReturn);
35 36

    [propget]
37
    HRESULT Count([retval, out] int *count);
38 39

    [propget]
40
    HRESULT Key([in] VARIANT key, [retval, out] VARIANT *value);
41 42 43 44 45 46 47 48 49 50
};

[
    object,
    dual,
    uuid(D97A6DA0-A864-11cf-83BE-00A0C90C2BD8)
]
interface IResponse : IDispatch
{
    [propget]
51
    HRESULT Buffer([retval, out] VARIANT_BOOL *is_buffering);
52 53

    [propput]
54
    HRESULT Buffer([in] VARIANT_BOOL is_buffering);
55 56

    [propget]
57
    HRESULT ContentType([retval, out] BSTR *content_type);
58 59

    [propput]
60
    HRESULT ContentType([in] BSTR content_type);
61 62

    [propget]
63
    HRESULT Expires([retval, out] VARIANT *minutes);
64 65

    [propput]
66
    HRESULT Expires([in] LONG minutes);
67 68

    [propget]
69
    HRESULT ExpiresAbsolute([retval, out] VARIANT *expires);
70 71

    [propput]
72
    HRESULT ExpiresAbsolute([in] DATE expires);
73 74

    [propget]
75
    HRESULT Cookies([retval, out] IRequestDictionary **cookies);
76 77

    [propget]
78
    HRESULT Status([retval, out] BSTR *status);
79 80

    [propput]
81
    HRESULT Status([in] BSTR status);
82 83

    [hidden]
84
    HRESULT Add([in] BSTR value, [in] BSTR name);
85

86
    HRESULT AddHeader([in] BSTR name, [in] BSTR value);
87

88
    HRESULT AppendToLog([in] BSTR log_entry);
89

90
    HRESULT BinaryWrite([in] VARIANT input);
91

92
    HRESULT Clear();
93

94
    HRESULT End();
95

96
    HRESULT Flush();
97

98
    HRESULT Redirect(BSTR url);
99

100
    HRESULT Write([in] VARIANT text);
101 102

    [hidden]
103
    HRESULT WriteBlock([in] short block_number);
104

105
    HRESULT IsClientConnected([retval, out] VARIANT_BOOL *is_connected);
106 107

    [propget]
108
    HRESULT CharSet([retval, out] BSTR *charset);
109 110

    [propput]
111
    HRESULT CharSet([in] BSTR charset);
112

113
    HRESULT Pics([in] BSTR value);
114 115

    [propget]
116
    HRESULT CacheControl([retval, out] BSTR *cache_control);
117 118

    [propput]
119
    HRESULT CacheControl([in] BSTR cache_control);
120 121

    [propget]
122
    HRESULT CodePage([retval, out] LONG *codepage);
123 124

    [propput]
125
    HRESULT CodePage([in] LONG codepage);
126 127

    [propget]
128
    HRESULT LCID([retval, out] LONG *lcid);
129 130

    [propput]
131 132
    HRESULT LCID([in] LONG lcid);
}