ReactOS 0.4.15-dev-8116-gf69e256
htmltextarea.c
Go to the documentation of this file.
1/*
2 * Copyright 2006 Jacek Caban 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 "mshtml_private.h"
20
21typedef struct {
23
24 IHTMLTextAreaElement IHTMLTextAreaElement_iface;
25
28
29static inline HTMLTextAreaElement *impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
30{
31 return CONTAINING_RECORD(iface, HTMLTextAreaElement, IHTMLTextAreaElement_iface);
32}
33
34static HRESULT WINAPI HTMLTextAreaElement_QueryInterface(IHTMLTextAreaElement *iface,
35 REFIID riid, void **ppv)
36{
38
39 return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
40}
41
42static ULONG WINAPI HTMLTextAreaElement_AddRef(IHTMLTextAreaElement *iface)
43{
45
46 return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
47}
48
49static ULONG WINAPI HTMLTextAreaElement_Release(IHTMLTextAreaElement *iface)
50{
52
53 return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
54}
55
56static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfoCount(IHTMLTextAreaElement *iface, UINT *pctinfo)
57{
59 return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
60}
61
62static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfo(IHTMLTextAreaElement *iface, UINT iTInfo,
63 LCID lcid, ITypeInfo **ppTInfo)
64{
66 return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
67 ppTInfo);
68}
69
70static HRESULT WINAPI HTMLTextAreaElement_GetIDsOfNames(IHTMLTextAreaElement *iface, REFIID riid,
71 LPOLESTR *rgszNames, UINT cNames,
72 LCID lcid, DISPID *rgDispId)
73{
75 return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
76 cNames, lcid, rgDispId);
77}
78
79static HRESULT WINAPI HTMLTextAreaElement_Invoke(IHTMLTextAreaElement *iface, DISPID dispIdMember,
80 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
81 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
82{
84 return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
85 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
86}
87
88static HRESULT WINAPI HTMLTextAreaElement_get_type(IHTMLTextAreaElement *iface, BSTR *p)
89{
90 static const WCHAR textareaW[] = {'t','e','x','t','a','r','e','a',0};
91
93
94 TRACE("(%p)->(%p)\n", This, p);
95
97 if(!*p)
98 return E_OUTOFMEMORY;
99 return S_OK;
100}
101
102static HRESULT WINAPI HTMLTextAreaElement_put_value(IHTMLTextAreaElement *iface, BSTR v)
103{
106 nsresult nsres;
107
108 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
109
111 nsres = nsIDOMHTMLTextAreaElement_SetValue(This->nstextarea, &value_str);
113 if(NS_FAILED(nsres)) {
114 ERR("SetValue failed: %08x\n", nsres);
115 return E_FAIL;
116 }
117
118 return S_OK;
119}
120
121static HRESULT WINAPI HTMLTextAreaElement_get_value(IHTMLTextAreaElement *iface, BSTR *p)
122{
125 nsresult nsres;
126
127 TRACE("(%p)->(%p)\n", This, p);
128
130 nsres = nsIDOMHTMLTextAreaElement_GetValue(This->nstextarea, &value_str);
131 return return_nsstr(nsres, &value_str, p);
132}
133
134static HRESULT WINAPI HTMLTextAreaElement_put_name(IHTMLTextAreaElement *iface, BSTR v)
135{
137 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
138 return E_NOTIMPL;
139}
140
141static HRESULT WINAPI HTMLTextAreaElement_get_name(IHTMLTextAreaElement *iface, BSTR *p)
142{
144 nsAString name_str;
145 nsresult nsres;
146
147 TRACE("(%p)->(%p)\n", This, p);
148
149 nsAString_Init(&name_str, NULL);
150 nsres = nsIDOMHTMLTextAreaElement_GetName(This->nstextarea, &name_str);
151 return return_nsstr(nsres, &name_str, p);
152}
153
154static HRESULT WINAPI HTMLTextAreaElement_put_status(IHTMLTextAreaElement *iface, VARIANT v)
155{
157 FIXME("(%p)->()\n", This);
158 return E_NOTIMPL;
159}
160
161static HRESULT WINAPI HTMLTextAreaElement_get_status(IHTMLTextAreaElement *iface, VARIANT *p)
162{
164 FIXME("(%p)->(%p)\n", This, p);
165 return E_NOTIMPL;
166}
167
169{
171 FIXME("(%p)->(%x)\n", This, v);
172 return E_NOTIMPL;
173}
174
175static HRESULT WINAPI HTMLTextAreaElement_get_disabled(IHTMLTextAreaElement *iface, VARIANT_BOOL *p)
176{
178 FIXME("(%p)->(%p)\n", This, p);
179 return E_NOTIMPL;
180}
181
182static HRESULT WINAPI HTMLTextAreaElement_get_form(IHTMLTextAreaElement *iface, IHTMLFormElement **p)
183{
185 nsIDOMHTMLFormElement *nsform;
186 nsIDOMNode *nsnode;
188 nsresult nsres;
190
191 TRACE("(%p)->(%p)\n", This, p);
192
193 nsres = nsIDOMHTMLTextAreaElement_GetForm(This->nstextarea, &nsform);
194 assert(nsres == NS_OK);
195
196 if(!nsform) {
197 *p = NULL;
198 return S_OK;
199 }
200
201 nsres = nsIDOMHTMLFormElement_QueryInterface(nsform, &IID_nsIDOMNode, (void**)&nsnode);
202 nsIDOMHTMLFormElement_Release(nsform);
203 assert(nsres == NS_OK);
204
205 hres = get_node(This->element.node.doc, nsnode, TRUE, &node);
206 nsIDOMNode_Release(nsnode);
207 if(FAILED(hres))
208 return hres;
209
210 hres = IHTMLDOMNode_QueryInterface(&node->IHTMLDOMNode_iface, &IID_IHTMLFormElement, (void**)p);
211 IHTMLDOMNode_Release(&node->IHTMLDOMNode_iface);
212 return hres;
213}
214
215static HRESULT WINAPI HTMLTextAreaElement_put_defaultValue(IHTMLTextAreaElement *iface, BSTR v)
216{
218 nsAString nsstr;
219 nsresult nsres;
220
221 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
222
223 nsAString_InitDepend(&nsstr, v);
224 nsres = nsIDOMHTMLTextAreaElement_SetDefaultValue(This->nstextarea, &nsstr);
225 nsAString_Finish(&nsstr);
226 return NS_SUCCEEDED(nsres) ? S_OK : E_FAIL;
227}
228
229static HRESULT WINAPI HTMLTextAreaElement_get_defaultValue(IHTMLTextAreaElement *iface, BSTR *p)
230{
232 nsAString nsstr;
233 nsresult nsres;
234
235 TRACE("(%p)->(%p)\n", This, p);
236
237 nsAString_Init(&nsstr, NULL);
238 nsres = nsIDOMHTMLTextAreaElement_GetDefaultValue(This->nstextarea, &nsstr);
239 return return_nsstr(nsres, &nsstr, p);
240}
241
242static HRESULT WINAPI HTMLTextAreaElement_select(IHTMLTextAreaElement *iface)
243{
245 FIXME("(%p)\n", This);
246 return E_NOTIMPL;
247}
248
249static HRESULT WINAPI HTMLTextAreaElement_put_onchange(IHTMLTextAreaElement *iface, VARIANT v)
250{
252 FIXME("(%p)->()\n", This);
253 return E_NOTIMPL;
254}
255
256static HRESULT WINAPI HTMLTextAreaElement_get_onchange(IHTMLTextAreaElement *iface, VARIANT *p)
257{
259 FIXME("(%p)->(%p)\n", This, p);
260 return E_NOTIMPL;
261}
262
263static HRESULT WINAPI HTMLTextAreaElement_put_onselect(IHTMLTextAreaElement *iface, VARIANT v)
264{
266 FIXME("(%p)->()\n", This);
267 return E_NOTIMPL;
268}
269
270static HRESULT WINAPI HTMLTextAreaElement_get_onselect(IHTMLTextAreaElement *iface, VARIANT *p)
271{
273 FIXME("(%p)->(%p)\n", This, p);
274 return E_NOTIMPL;
275}
276
278{
280 nsresult nsres;
281
282 TRACE("(%p)->(%x)\n", This, v);
283
284 nsres = nsIDOMHTMLTextAreaElement_SetReadOnly(This->nstextarea, v != VARIANT_FALSE);
285 if(NS_FAILED(nsres)) {
286 ERR("SetReadOnly failed: %08x\n", nsres);
287 return E_FAIL;
288 }
289
290 return S_OK;
291}
292
293static HRESULT WINAPI HTMLTextAreaElement_get_readOnly(IHTMLTextAreaElement *iface, VARIANT_BOOL *p)
294{
296 cpp_bool b;
297 nsresult nsres;
298
299 TRACE("(%p)->(%p)\n", This, p);
300
301 nsres = nsIDOMHTMLTextAreaElement_GetReadOnly(This->nstextarea, &b);
302 if(NS_FAILED(nsres)) {
303 ERR("GetReadOnly failed: %08x\n", nsres);
304 return E_FAIL;
305 }
306
307 *p = b ? VARIANT_TRUE : VARIANT_FALSE;
308 return S_OK;
309}
310
311static HRESULT WINAPI HTMLTextAreaElement_put_rows(IHTMLTextAreaElement *iface, LONG v)
312{
314 FIXME("(%p)->(%d)\n", This, v);
315 return E_NOTIMPL;
316}
317
318static HRESULT WINAPI HTMLTextAreaElement_get_rows(IHTMLTextAreaElement *iface, LONG *p)
319{
321 FIXME("(%p)->(%p)\n", This, p);
322 return E_NOTIMPL;
323}
324
325static HRESULT WINAPI HTMLTextAreaElement_put_cols(IHTMLTextAreaElement *iface, LONG v)
326{
328 FIXME("(%p)->(%d)\n", This, v);
329 return E_NOTIMPL;
330}
331
332static HRESULT WINAPI HTMLTextAreaElement_get_cols(IHTMLTextAreaElement *iface, LONG *p)
333{
335 FIXME("(%p)->(%p)\n", This, p);
336 return E_NOTIMPL;
337}
338
339static HRESULT WINAPI HTMLTextAreaElement_put_wrap(IHTMLTextAreaElement *iface, BSTR v)
340{
342 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
343 return E_NOTIMPL;
344}
345
346static HRESULT WINAPI HTMLTextAreaElement_get_wrap(IHTMLTextAreaElement *iface, BSTR *p)
347{
349 FIXME("(%p)->(%p)\n", This, p);
350 return E_NOTIMPL;
351}
352
353static HRESULT WINAPI HTMLTextAreaElement_createTextRange(IHTMLTextAreaElement *iface,
354 IHTMLTxtRange **range)
355{
357 FIXME("(%p)->(%p)\n", This, range);
358 return E_NOTIMPL;
359}
360
361static const IHTMLTextAreaElementVtbl HTMLTextAreaElementVtbl = {
395};
396
398{
399 return CONTAINING_RECORD(iface, HTMLTextAreaElement, element.node);
400}
401
403{
405
406 *ppv = NULL;
407
409 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
410 *ppv = &This->IHTMLTextAreaElement_iface;
411 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
412 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
413 *ppv = &This->IHTMLTextAreaElement_iface;
414 }else if(IsEqualGUID(&IID_IHTMLTextAreaElement, riid)) {
415 TRACE("(%p)->(IID_IHTMLTextAreaElement %p)\n", This, ppv);
416 *ppv = &This->IHTMLTextAreaElement_iface;
417 }
418
419 if(*ppv) {
420 IUnknown_AddRef((IUnknown*)*ppv);
421 return S_OK;
422 }
423
424 return HTMLElement_QI(&This->element.node, riid, ppv);
425}
426
428{
430 return IHTMLTextAreaElement_put_disabled(&This->IHTMLTextAreaElement_iface, v);
431}
432
434{
436 return IHTMLTextAreaElement_get_disabled(&This->IHTMLTextAreaElement_iface, p);
437}
438
440{
441 return TRUE;
442}
443
445{
447
448 if(This->nstextarea)
449 note_cc_edge((nsISupports*)This->nstextarea, "This->nstextarea", cb);
450}
451
453{
455
456 if(This->nstextarea) {
457 nsIDOMHTMLTextAreaElement *nstextarea = This->nstextarea;
458
459 This->nstextarea = NULL;
460 nsIDOMHTMLTextAreaElement_Release(nstextarea);
461 }
462}
463
471 NULL,
472 NULL,
475 NULL,
476 NULL,
477 NULL,
478 NULL,
479 NULL,
483};
484
487 IHTMLTextAreaElement_tid,
488 0
489};
490
492 NULL,
493 DispHTMLTextAreaElement_tid,
494 NULL,
496};
497
499{
501 nsresult nsres;
502
503 ret = heap_alloc_zero(sizeof(HTMLTextAreaElement));
504 if(!ret)
505 return E_OUTOFMEMORY;
506
507 ret->IHTMLTextAreaElement_iface.lpVtbl = &HTMLTextAreaElementVtbl;
508 ret->element.node.vtbl = &HTMLTextAreaElementImplVtbl;
509
510 HTMLElement_Init(&ret->element, doc, nselem, &HTMLTextAreaElement_dispex);
511
512 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLTextAreaElement, (void**)&ret->nstextarea);
513 assert(nsres == NS_OK);
514
515 *elem = &ret->element;
516 return S_OK;
517}
const GUID IID_IUnknown
#define FIXME(fmt,...)
Definition: debug.h:114
#define ERR(fmt,...)
Definition: debug.h:113
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_NOTIMPL
Definition: ddrawi.h:99
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
unsigned char cpp_bool
Definition: atl.c:38
OLECHAR * BSTR
Definition: compat.h:2293
short VARIANT_BOOL
Definition: compat.h:2290
#define assert(x)
Definition: debug.h:53
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned short WORD
Definition: ntddk_ex.h:93
const GLdouble * v
Definition: gl.h:2040
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLenum GLint * range
Definition: glext.h:7539
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
const cpc_entry_t HTMLElement_cpc[]
Definition: htmlelem.c:3847
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static const WCHAR textareaW[]
Definition: htmlelem.c:42
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
Definition: htmlnode.c:1339
static HRESULT WINAPI HTMLTextAreaElement_get_wrap(IHTMLTextAreaElement *iface, BSTR *p)
Definition: htmltextarea.c:346
static HRESULT WINAPI HTMLTextAreaElement_put_value(IHTMLTextAreaElement *iface, BSTR v)
Definition: htmltextarea.c:102
static HRESULT HTMLTextAreaElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmltextarea.c:402
static HTMLTextAreaElement * impl_from_IHTMLTextAreaElement(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:29
static HRESULT WINAPI HTMLTextAreaElement_get_onselect(IHTMLTextAreaElement *iface, VARIANT *p)
Definition: htmltextarea.c:270
HRESULT HTMLTextAreaElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmltextarea.c:498
static BOOL HTMLTextAreaElement_is_text_edit(HTMLDOMNode *iface)
Definition: htmltextarea.c:439
static HRESULT WINAPI HTMLTextAreaElement_put_rows(IHTMLTextAreaElement *iface, LONG v)
Definition: htmltextarea.c:311
static HRESULT WINAPI HTMLTextAreaElement_put_onchange(IHTMLTextAreaElement *iface, VARIANT v)
Definition: htmltextarea.c:249
static HRESULT WINAPI HTMLTextAreaElement_get_value(IHTMLTextAreaElement *iface, BSTR *p)
Definition: htmltextarea.c:121
static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfoCount(IHTMLTextAreaElement *iface, UINT *pctinfo)
Definition: htmltextarea.c:56
static HRESULT WINAPI HTMLTextAreaElement_put_defaultValue(IHTMLTextAreaElement *iface, BSTR v)
Definition: htmltextarea.c:215
static HRESULT WINAPI HTMLTextAreaElement_Invoke(IHTMLTextAreaElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmltextarea.c:79
static HRESULT WINAPI HTMLTextAreaElement_get_status(IHTMLTextAreaElement *iface, VARIANT *p)
Definition: htmltextarea.c:161
static ULONG WINAPI HTMLTextAreaElement_AddRef(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:42
static void HTMLTextAreaElement_unlink(HTMLDOMNode *iface)
Definition: htmltextarea.c:452
static HRESULT WINAPI HTMLTextAreaElement_QueryInterface(IHTMLTextAreaElement *iface, REFIID riid, void **ppv)
Definition: htmltextarea.c:34
static const IHTMLTextAreaElementVtbl HTMLTextAreaElementVtbl
Definition: htmltextarea.c:361
static HRESULT WINAPI HTMLTextAreaElement_get_type(IHTMLTextAreaElement *iface, BSTR *p)
Definition: htmltextarea.c:88
static void HTMLTextAreaElement_traverse(HTMLDOMNode *iface, nsCycleCollectionTraversalCallback *cb)
Definition: htmltextarea.c:444
static HRESULT WINAPI HTMLTextAreaElement_get_name(IHTMLTextAreaElement *iface, BSTR *p)
Definition: htmltextarea.c:141
static HRESULT WINAPI HTMLTextAreaElement_get_disabled(IHTMLTextAreaElement *iface, VARIANT_BOOL *p)
Definition: htmltextarea.c:175
static HRESULT WINAPI HTMLTextAreaElement_get_cols(IHTMLTextAreaElement *iface, LONG *p)
Definition: htmltextarea.c:332
static HRESULT WINAPI HTMLTextAreaElement_put_wrap(IHTMLTextAreaElement *iface, BSTR v)
Definition: htmltextarea.c:339
static HRESULT WINAPI HTMLTextAreaElement_put_onselect(IHTMLTextAreaElement *iface, VARIANT v)
Definition: htmltextarea.c:263
static HRESULT HTMLTextAreaElementImpl_put_disabled(HTMLDOMNode *iface, VARIANT_BOOL v)
Definition: htmltextarea.c:427
static HRESULT WINAPI HTMLTextAreaElement_select(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:242
static HRESULT WINAPI HTMLTextAreaElement_GetTypeInfo(IHTMLTextAreaElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmltextarea.c:62
static HRESULT WINAPI HTMLTextAreaElement_put_disabled(IHTMLTextAreaElement *iface, VARIANT_BOOL v)
Definition: htmltextarea.c:168
static ULONG WINAPI HTMLTextAreaElement_Release(IHTMLTextAreaElement *iface)
Definition: htmltextarea.c:49
static HRESULT HTMLTextAreaElementImpl_get_disabled(HTMLDOMNode *iface, VARIANT_BOOL *p)
Definition: htmltextarea.c:433
static HRESULT WINAPI HTMLTextAreaElement_put_cols(IHTMLTextAreaElement *iface, LONG v)
Definition: htmltextarea.c:325
static HRESULT WINAPI HTMLTextAreaElement_get_defaultValue(IHTMLTextAreaElement *iface, BSTR *p)
Definition: htmltextarea.c:229
static HRESULT WINAPI HTMLTextAreaElement_get_form(IHTMLTextAreaElement *iface, IHTMLFormElement **p)
Definition: htmltextarea.c:182
static const NodeImplVtbl HTMLTextAreaElementImplVtbl
Definition: htmltextarea.c:464
static HRESULT WINAPI HTMLTextAreaElement_put_status(IHTMLTextAreaElement *iface, VARIANT v)
Definition: htmltextarea.c:154
static const tid_t HTMLTextAreaElement_iface_tids[]
Definition: htmltextarea.c:485
static HTMLTextAreaElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmltextarea.c:397
static HRESULT WINAPI HTMLTextAreaElement_get_readOnly(IHTMLTextAreaElement *iface, VARIANT_BOOL *p)
Definition: htmltextarea.c:293
static HRESULT WINAPI HTMLTextAreaElement_put_name(IHTMLTextAreaElement *iface, BSTR v)
Definition: htmltextarea.c:134
static HRESULT WINAPI HTMLTextAreaElement_get_rows(IHTMLTextAreaElement *iface, LONG *p)
Definition: htmltextarea.c:318
static HRESULT WINAPI HTMLTextAreaElement_createTextRange(IHTMLTextAreaElement *iface, IHTMLTxtRange **range)
Definition: htmltextarea.c:353
static HRESULT WINAPI HTMLTextAreaElement_get_onchange(IHTMLTextAreaElement *iface, VARIANT *p)
Definition: htmltextarea.c:256
static HRESULT WINAPI HTMLTextAreaElement_GetIDsOfNames(IHTMLTextAreaElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmltextarea.c:70
static dispex_static_data_t HTMLTextAreaElement_dispex
Definition: htmltextarea.c:491
static HRESULT WINAPI HTMLTextAreaElement_put_readOnly(IHTMLTextAreaElement *iface, VARIANT_BOOL v)
Definition: htmltextarea.c:277
tid_t
Definition: ieframe.h:311
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define b
Definition: ke_i.h:79
#define debugstr_w
Definition: kernel32.h:32
HRESULT hres
Definition: protocol.c:465
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
static size_t elem
Definition: string.c:68
static UNICODE_STRING value_str
Definition: reg.c:1328
static LPOLESTR
Definition: stg_prop.c:27
static VARIANTARG static DISPID
Definition: ordinal.c:52
#define NS_OK
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
#define HTMLELEMENT_TIDS
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817
struct nsCycleCollectionTraversalCallback nsCycleCollectionTraversalCallback
#define NS_SUCCEEDED(res)
#define NS_FAILED(res)
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841
unsigned int UINT
Definition: ndis.h:50
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
const GUID IID_IDispatch
long LONG
Definition: pedump.c:60
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define REFIID
Definition: guiddef.h:118
DWORD LCID
Definition: nls.h:13
#define TRACE(s)
Definition: solgame.cpp:4
IHTMLTextAreaElement IHTMLTextAreaElement_iface
Definition: htmltextarea.c:24
HTMLElement element
Definition: htmltextarea.c:22
nsIDOMHTMLTextAreaElement * nstextarea
Definition: htmltextarea.c:26
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
uint32_t ULONG
Definition: typedefs.h:59
Definition: dlist.c:348
int ret
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180