ReactOS  0.4.15-dev-1384-g878186b
httprequest.idl
Go to the documentation of this file.
1 /*
2  * Copyright 2011 Hans Leidekker for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #include "httprequestid.h"
20 
21 import "oaidl.idl";
22 
23 #ifndef __WIDL__
24 #define threading(model)
25 #define progid(str)
26 #endif
27 
28 [
29  uuid(662901fc-6951-4854-9eb2-d9a2570f2b2e),
30  helpstring("Microsoft WinHTTP Services, version 5.1"),
31  lcid(0x0000),
32  version(5.1)
33 ]
35 
36 importlib ("stdole2.tlb");
37 
43 
47 
48 typedef
49 [uuid(12782009-fe90-4877-9730-e5e183669b19)]
51 {
73 
74 typedef
75 [uuid(9d8a6df8-13de-4b1f-a330-67c719d62514)]
77 {
82 
83 [
84  object,
85  uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396b),
86  odl,
87  dual,
89  nonextensible,
91 ]
93 {
95  HRESULT SetProxy(
96  [in] HTTPREQUEST_PROXY_SETTING proxy_setting,
98  [in, optional] VARIANT bypass_list);
99 
101  HRESULT SetCredentials(
102  [in] BSTR username,
103  [in] BSTR password,
105 
107  HRESULT Open(
108  [in] BSTR method,
109  [in] BSTR url,
110  [in, optional] VARIANT async);
111 
113  HRESULT SetRequestHeader(
114  [in] BSTR header,
115  [in] BSTR value);
116 
118  HRESULT GetResponseHeader(
119  [in] BSTR header,
120  [out, retval] BSTR *value);
121 
123  HRESULT GetAllResponseHeaders(
124  [out, retval] BSTR *headers);
125 
127  HRESULT Send(
128  [in, optional] VARIANT body);
129 
130  [propget, id(DISPID_HTTPREQUEST_STATUS)]
131  HRESULT Status(
132  [out, retval] LONG *status);
133 
135  HRESULT StatusText(
136  [out, retval] BSTR *status);
137 
139  HRESULT ResponseText(
140  [out, retval] BSTR *body);
141 
143  HRESULT ResponseBody(
144  [out, retval] VARIANT *body);
145 
147  HRESULT ResponseStream(
148  [out, retval] VARIANT *body);
149 
150  [propget, id(DISPID_HTTPREQUEST_OPTION)]
151  HRESULT Option(
153  [out, retval] VARIANT *value);
154 
155  [propput, id(DISPID_HTTPREQUEST_OPTION)]
156  HRESULT Option(
158  [in] VARIANT value);
159 
161  HRESULT WaitForResponse(
163  [out, retval] VARIANT_BOOL *succeeded);
164 
166  HRESULT Abort();
167 
169  HRESULT SetTimeouts(
170  [in] LONG resolve_timeout,
172  [in] LONG send_timeout,
173  [in] LONG receive_timeout);
174 
176  HRESULT SetClientCertificate(
177  [in] BSTR certificate);
178 
180  HRESULT SetAutoLogonPolicy(
182 }
183 [
184  helpstring("WinHttpRequest Component version 5.1"),
186  progid("WinHttp.WinHttpRequest.5.1"),
187  uuid(2087c2f4-2cef-4953-a8ab-66779b670495)
188 ]
189 coclass WinHttpRequest { interface IWinHttpRequest; }
190 
191 } /* WinHttp */
#define DISPID_HTTPREQUEST_SETPROXY
Definition: httprequestid.h:35
#define DISPID_HTTPREQUEST_SETCREDENTIALS
Definition: httprequestid.h:36
WinHttpRequestOption
Definition: httprequest.idl:48
#define DISPID_HTTPREQUEST_RESPONSESTREAM
Definition: httprequestid.h:33
#define DISPID_HTTPREQUEST_SETTIMEOUTS
Definition: httprequestid.h:38
coclass MSXML2::XSLTemplate40 object
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_DIRECT
Definition: httprequest.idl:41
#define DISPID_HTTPREQUEST_SETCLIENTCERTIFICATE
Definition: httprequestid.h:39
coclass SHDocVw::ShellWindows dual
Definition: exdisp.idl:631
typedef helpstring
#define DISPID_HTTPREQUEST_GETRESPONSEHEADER
Definition: httprequestid.h:25
#define DISPID_HTTPREQUEST_ABORT
Definition: httprequestid.h:34
vector< Header * > headers
Definition: sdkparse.cpp:39
Definition: dhcpd.h:245
OLECHAR * BSTR
Definition: compat.h:2152
#define DISPID_HTTPREQUEST_STATUS
Definition: httprequestid.h:29
FT_Library library
Definition: cffdrivr.c:654
short VARIANT_BOOL
Definition: compat.h:2149
coclass TestTypelib::Coclass3 oleautomation
Definition: tmarshal.idl:202
#define progid(str)
Definition: httprequest.idl:25
WDF_INTERRUPT_POLICY policy
#define Open
Definition: syshdrs.h:62
const HTTPREQUEST_SETCREDENTIALS_FLAGS HTTPREQUEST_SETCREDENTIALS_FOR_PROXY
Definition: httprequest.idl:46
long LONG
Definition: pedump.c:60
static const WCHAR version[]
Definition: asmname.c:66
Definition: getopt.h:108
LONG HTTPREQUEST_PROXY_SETTING
Definition: httprequest.idl:38
Definition: msg.h:41
static WCHAR username[]
Definition: url.c:32
#define DISPID_HTTPREQUEST_SETREQUESTHEADER
Definition: httprequestid.h:24
Status
Definition: gdiplustypes.h:24
#define DISPID_HTTPREQUEST_RESPONSEBODY
Definition: httprequestid.h:32
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_PRECONFIG
Definition: httprequest.idl:40
LONG HRESULT
Definition: typedefs.h:79
static const WCHAR url[]
Definition: encode.c:1432
#define DISPID_HTTPREQUEST_SEND
Definition: httprequestid.h:27
static FILE * out
Definition: regtests2xml.c:44
enum WinHttp::WinHttpRequestAutoLogonPolicy WinHttpRequestAutoLogonPolicy
GLbitfield flags
Definition: glext.h:7161
method
Definition: dragdrop.c:53
#define DISPID_HTTPREQUEST_SETAUTOLOGONPOLICY
Definition: httprequestid.h:40
#define DISPID_HTTPREQUEST_OPTION
Definition: httprequestid.h:28
enum WinHttp::WinHttpRequestOption WinHttpRequestOption
coclass TestTypelib::Coclass3 odl
PFOR_CONTEXT fc
Definition: for.c:57
#define DISPID_HTTPREQUEST_RESPONSETEXT
Definition: httprequestid.h:31
#define DISPID_HTTPREQUEST_OPEN
Definition: httprequestid.h:23
T1_FIELD_DICT_PRIVATE password
Definition: t1tokens.h:64
importlib("stdole2.tlb")
static ULONG connect_timeout
Definition: internet.c:101
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_PROXY
Definition: httprequest.idl:42
const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_DEFAULT
Definition: httprequest.idl:39
const HTTPREQUEST_SETCREDENTIALS_FLAGS HTTPREQUEST_SETCREDENTIALS_FOR_SERVER
Definition: httprequest.idl:45
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
static const void * body(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:100
static const WCHAR proxy_server[]
Definition: connections.c:40
WinHttpRequestAutoLogonPolicy
Definition: httprequest.idl:74
GLenum GLuint id
Definition: glext.h:5579
#define DISPID_HTTPREQUEST_GETALLRESPONSEHEADERS
Definition: httprequestid.h:26
#define DISPID_HTTPREQUEST_WAITFORRESPONSE
Definition: httprequestid.h:37
LONG HTTPREQUEST_SETCREDENTIALS_FLAGS
Definition: httprequest.idl:44
#define DISPID_HTTPREQUEST_STATUSTEXT
Definition: httprequestid.h:30
#define threading(model)
Definition: httprequest.idl:24
Definition: ps.c:97