ReactOS 0.4.15-dev-7942-gd23573b
msxml_private.h File Reference
#include "dispex.h"
#include "wine/unicode.h"
#include "wine/heap.h"
#include "wine/list.h"
Include dependency graph for msxml_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dispex_static_data_vtbl_t
 
struct  dispex_static_data_t
 
struct  DispatchEx
 
struct  xslprocessor_par
 
struct  xslprocessor_params
 

Macros

#define E_XML_ELEMENT_UNDECLARED   0xC00CE00D
 
#define E_XML_ELEMENT_ID_NOT_FOUND   0xC00CE00E
 
#define E_XML_EMPTY_NOT_ALLOWED   0xC00CE011
 
#define E_XML_ELEMENT_NOT_COMPLETE   0xC00CE012
 
#define E_XML_ROOT_NAME_MISMATCH   0xC00CE013
 
#define E_XML_INVALID_CONTENT   0xC00CE014
 
#define E_XML_ATTRIBUTE_NOT_DEFINED   0xC00CE015
 
#define E_XML_ATTRIBUTE_FIXED   0xC00CE016
 
#define E_XML_ATTRIBUTE_VALUE   0xC00CE017
 
#define E_XML_ILLEGAL_TEXT   0xC00CE018
 
#define E_XML_REQUIRED_ATTRIBUTE_MISSING   0xC00CE020
 
#define NODE_PRIV_TRAILING_IGNORABLE_WS   0x40000000
 
#define NODE_PRIV_CHILD_IGNORABLE_WS   0x80000000
 
#define NODE_PRIV_REFCOUNT_MASK   ~(NODE_PRIV_TRAILING_IGNORABLE_WS|NODE_PRIV_CHILD_IGNORABLE_WS)
 

Typedefs

typedef enum tid_t tid_t
 
typedef enum _XDR_DT XDR_DT
 
typedef struct dispex_data_t dispex_data_t
 
typedef struct bsc_t bsc_t
 

Enumerations

enum  MSXML_VERSION {
  MSXML_DEFAULT = 0 , MSXML2 = 20 , MSXML26 = 26 , MSXML3 = 30 ,
  MSXML4 = 40 , MSXML6 = 60
}
 
enum  tid_t {
  LAST_tid , LAST_tid , Database_tid , Installer_tid ,
  Record_tid , Session_tid , StringList_tid , SummaryInfo_tid ,
  View_tid , LAST_tid , NULL_tid , IXMLDOMAttribute_tid ,
  IXMLDOMCDATASection_tid , IXMLDOMComment_tid , IXMLDOMDocument_tid , IXMLDOMDocument2_tid ,
  IXMLDOMDocument3_tid , IXMLDOMDocumentFragment_tid , IXMLDOMDocumentType_tid , IXMLDOMElement_tid ,
  IXMLDOMEntityReference_tid , IXMLDOMImplementation_tid , IXMLDOMNamedNodeMap_tid , IXMLDOMNode_tid ,
  IXMLDOMNodeList_tid , IXMLDOMParseError2_tid , IXMLDOMProcessingInstruction_tid , IXMLDOMSchemaCollection_tid ,
  IXMLDOMSchemaCollection2_tid , IXMLDOMSelection_tid , IXMLDOMText_tid , IXMLElement_tid ,
  IXMLDocument_tid , IXMLHTTPRequest_tid , IXSLProcessor_tid , IXSLTemplate_tid ,
  IVBSAXAttributes_tid , IVBSAXContentHandler_tid , IVBSAXDeclHandler_tid , IVBSAXDTDHandler_tid ,
  IVBSAXEntityResolver_tid , IVBSAXErrorHandler_tid , IVBSAXLexicalHandler_tid , IVBSAXLocator_tid ,
  IVBSAXXMLFilter_tid , IVBSAXXMLReader_tid , IMXAttributes_tid , IMXReaderControl_tid ,
  IMXWriter_tid , IVBMXNamespaceManager_tid , IServerXMLHTTPRequest_tid , LAST_tid ,
  NULL_tid , ITextDocument_tid , ITextRange_tid , ITextSelection_tid ,
  ITextFont_tid , ITextPara_tid , LAST_tid , NULL_tid ,
  IDictionary_tid , IDrive_tid , IDriveCollection_tid , IFile_tid ,
  IFileCollection_tid , IFileSystem3_tid , IFolder_tid , IFolderCollection_tid ,
  ITextStream_tid , LAST_tid , NULL_tid , IWshCollection_tid ,
  IWshEnvironment_tid , IWshExec_tid , IWshShell3_tid , IWshShortcut_tid ,
  LAST_tid
}
 
enum  _XDR_DT {
  DT_INVALID = -1 , DT_BIN_BASE64 , DT_BIN_HEX , DT_BOOLEAN ,
  DT_CHAR , DT_DATE , DT_DATE_TZ , DT_DATETIME ,
  DT_DATETIME_TZ , DT_ENTITY , DT_ENTITIES , DT_ENUMERATION ,
  DT_FIXED_14_4 , DT_FLOAT , DT_I1 , DT_I2 ,
  DT_I4 , DT_I8 , DT_ID , DT_IDREF ,
  DT_IDREFS , DT_INT , DT_NMTOKEN , DT_NMTOKENS ,
  DT_NOTATION , DT_NUMBER , DT_R4 , DT_R8 ,
  DT_STRING , DT_TIME , DT_TIME_TZ , DT_UI1 ,
  DT_UI2 , DT_UI4 , DT_UI8 , DT_URI ,
  DT_UUID , LAST_DT
}
 

Functions

HRESULT get_typeinfo (tid_t tid, ITypeInfo **typeinfo) DECLSPEC_HIDDEN
 
void release_typelib (void) DECLSPEC_HIDDEN
 
void init_dispex (DispatchEx *, IUnknown *, dispex_static_data_t *) DECLSPEC_HIDDEN
 
void release_dispex (DispatchEx *) DECLSPEC_HIDDEN
 
BOOL dispex_query_interface (DispatchEx *, REFIID, void **) DECLSPEC_HIDDEN
 
const IIDget_riid_from_tid (enum tid_t tid) DECLSPEC_HIDDEN
 
static void__WINE_ALLOC_SIZE (2) heap_realloc_zero(void *mem
 
static LPWSTR heap_strdupW (LPCWSTR str)
 
static HRESULT return_bstr (const WCHAR *value, BSTR *p)
 
static HRESULT return_bstrn (const WCHAR *value, int len, BSTR *p)
 
static HRESULT return_null_node (IXMLDOMNode **p)
 
static HRESULT return_null_ptr (void **p)
 
static HRESULT return_null_var (VARIANT *p)
 
static HRESULT return_null_bstr (BSTR *p)
 
static HRESULT return_var_false (VARIANT_BOOL *p)
 
IXMLDOMParseErrorcreate_parseError (LONG code, BSTR url, BSTR reason, BSTR srcText, LONG line, LONG linepos, LONG filepos) DECLSPEC_HIDDEN
 
HRESULT DOMDocument_create (MSXML_VERSION, void **) DECLSPEC_HIDDEN
 
HRESULT SchemaCache_create (MSXML_VERSION, void **) DECLSPEC_HIDDEN
 
HRESULT XMLDocument_create (void **) DECLSPEC_HIDDEN
 
HRESULT SAXXMLReader_create (MSXML_VERSION, void **) DECLSPEC_HIDDEN
 
HRESULT SAXAttributes_create (MSXML_VERSION, void **) DECLSPEC_HIDDEN
 
HRESULT XMLHTTPRequest_create (void **) DECLSPEC_HIDDEN
 
HRESULT ServerXMLHTTP_create (void **) DECLSPEC_HIDDEN
 
HRESULT XSLTemplate_create (void **) DECLSPEC_HIDDEN
 
HRESULT MXWriter_create (MSXML_VERSION, void **) DECLSPEC_HIDDEN
 
HRESULT MXNamespaceManager_create (void **) DECLSPEC_HIDDEN
 
HRESULT XMLParser_create (void **) DECLSPEC_HIDDEN
 
HRESULT XMLView_create (void **) DECLSPEC_HIDDEN
 
static const CLSIDDOMDocument_version (MSXML_VERSION v)
 
static const CLSIDSchemaCache_version (MSXML_VERSION v)
 
HRESULT create_moniker_from_url (LPCWSTR, IMoniker **) DECLSPEC_HIDDEN
 
HRESULT create_uri (const WCHAR *, IUri **) DECLSPEC_HIDDEN
 
HRESULT bind_url (IMoniker *, HRESULT(*onDataAvailable)(void *, char *, DWORD), void *, bsc_t **) DECLSPEC_HIDDEN
 
HRESULT detach_bsc (bsc_t *) DECLSPEC_HIDDEN
 

Variables

HINSTANCE MSXML_hInstance DECLSPEC_HIDDEN
 
static void size_t size
 

Macro Definition Documentation

◆ E_XML_ATTRIBUTE_FIXED

#define E_XML_ATTRIBUTE_FIXED   0xC00CE016

Definition at line 548 of file msxml_private.h.

◆ E_XML_ATTRIBUTE_NOT_DEFINED

#define E_XML_ATTRIBUTE_NOT_DEFINED   0xC00CE015

Definition at line 547 of file msxml_private.h.

◆ E_XML_ATTRIBUTE_VALUE

#define E_XML_ATTRIBUTE_VALUE   0xC00CE017

Definition at line 549 of file msxml_private.h.

◆ E_XML_ELEMENT_ID_NOT_FOUND

#define E_XML_ELEMENT_ID_NOT_FOUND   0xC00CE00E

Definition at line 541 of file msxml_private.h.

◆ E_XML_ELEMENT_NOT_COMPLETE

#define E_XML_ELEMENT_NOT_COMPLETE   0xC00CE012

Definition at line 544 of file msxml_private.h.

◆ E_XML_ELEMENT_UNDECLARED

#define E_XML_ELEMENT_UNDECLARED   0xC00CE00D

Definition at line 540 of file msxml_private.h.

◆ E_XML_EMPTY_NOT_ALLOWED

#define E_XML_EMPTY_NOT_ALLOWED   0xC00CE011

Definition at line 543 of file msxml_private.h.

◆ E_XML_ILLEGAL_TEXT

#define E_XML_ILLEGAL_TEXT   0xC00CE018

Definition at line 550 of file msxml_private.h.

◆ E_XML_INVALID_CONTENT

#define E_XML_INVALID_CONTENT   0xC00CE014

Definition at line 546 of file msxml_private.h.

◆ E_XML_REQUIRED_ATTRIBUTE_MISSING

#define E_XML_REQUIRED_ATTRIBUTE_MISSING   0xC00CE020

Definition at line 552 of file msxml_private.h.

◆ E_XML_ROOT_NAME_MISMATCH

#define E_XML_ROOT_NAME_MISMATCH   0xC00CE013

Definition at line 545 of file msxml_private.h.

◆ NODE_PRIV_CHILD_IGNORABLE_WS

#define NODE_PRIV_CHILD_IGNORABLE_WS   0x80000000

Definition at line 555 of file msxml_private.h.

◆ NODE_PRIV_REFCOUNT_MASK

Definition at line 556 of file msxml_private.h.

◆ NODE_PRIV_TRAILING_IGNORABLE_WS

#define NODE_PRIV_TRAILING_IGNORABLE_WS   0x40000000

Definition at line 554 of file msxml_private.h.

Typedef Documentation

◆ bsc_t

typedef struct bsc_t bsc_t

Definition at line 532 of file msxml_private.h.

◆ dispex_data_t

Definition at line 137 of file msxml_private.h.

◆ tid_t

typedef enum tid_t tid_t

◆ XDR_DT

typedef enum _XDR_DT XDR_DT

Enumeration Type Documentation

◆ _XDR_DT

Enumerator
DT_INVALID 
DT_BIN_BASE64 
DT_BIN_HEX 
DT_BOOLEAN 
DT_CHAR 
DT_DATE 
DT_DATE_TZ 
DT_DATETIME 
DT_DATETIME_TZ 
DT_ENTITY 
DT_ENTITIES 
DT_ENUMERATION 
DT_FIXED_14_4 
DT_FLOAT 
DT_I1 
DT_I2 
DT_I4 
DT_I8 
DT_ID 
DT_IDREF 
DT_IDREFS 
DT_INT 
DT_NMTOKEN 
DT_NMTOKENS 
DT_NOTATION 
DT_NUMBER 
DT_R4 
DT_R8 
DT_STRING 
DT_TIME 
DT_TIME_TZ 
DT_UI1 
DT_UI2 
DT_UI4 
DT_UI8 
DT_URI 
DT_UUID 
LAST_DT 

Definition at line 93 of file msxml_private.h.

93 {
94 DT_INVALID = -1,
98 DT_CHAR,
99 DT_DATE,
103 DT_ENTITY,
107 DT_FLOAT,
108 DT_I1,
109 DT_I2,
110 DT_I4,
111 DT_I8,
112 DT_ID,
113 DT_IDREF,
114 DT_IDREFS,
115 DT_INT,
119 DT_NUMBER,
120 DT_R4,
121 DT_R8,
122 DT_STRING,
123 DT_TIME,
125 DT_UI1,
126 DT_UI2,
127 DT_UI4,
128 DT_UI8,
129 DT_URI,
130 DT_UUID,
131 LAST_DT
132} XDR_DT;
enum _XDR_DT XDR_DT
@ DT_I4
@ DT_NMTOKEN
@ DT_ID
@ DT_TIME_TZ
@ DT_NUMBER
@ DT_FIXED_14_4
@ DT_NMTOKENS
@ DT_URI
@ DT_DATE_TZ
@ DT_INVALID
Definition: msxml_private.h:94
@ DT_UI4
@ DT_R8
@ DT_DATETIME_TZ
@ DT_STRING
@ DT_ENTITIES
@ DT_FLOAT
@ DT_DATETIME
@ DT_BIN_HEX
Definition: msxml_private.h:96
@ DT_I1
@ DT_UI8
@ DT_DATE
Definition: msxml_private.h:99
@ LAST_DT
@ DT_UI2
@ DT_BIN_BASE64
Definition: msxml_private.h:95
@ DT_I2
@ DT_ENTITY
@ DT_ENUMERATION
@ DT_IDREF
@ DT_R4
@ DT_UI1
@ DT_BOOLEAN
Definition: msxml_private.h:97
@ DT_CHAR
Definition: msxml_private.h:98
@ DT_TIME
@ DT_IDREFS
@ DT_NOTATION
@ DT_I8
@ DT_INT
@ DT_UUID

◆ MSXML_VERSION

Enumerator
MSXML_DEFAULT 
MSXML2 
MSXML26 
MSXML3 
MSXML4 
MSXML6 

Definition at line 34 of file msxml_private.h.

34 {
35 MSXML_DEFAULT = 0,
36 MSXML2 = 20,
37 MSXML26 = 26,
38 MSXML3 = 30,
39 MSXML4 = 40,
40 MSXML6 = 60
MSXML_VERSION
Definition: msxml_private.h:34
@ MSXML_DEFAULT
Definition: msxml_private.h:35
@ MSXML4
Definition: msxml_private.h:39
@ MSXML6
Definition: msxml_private.h:40
@ MSXML26
Definition: msxml_private.h:37
@ MSXML3
Definition: msxml_private.h:38

◆ tid_t

Enumerator
LAST_tid 
LAST_tid 
Database_tid 
Installer_tid 
Record_tid 
Session_tid 
StringList_tid 
SummaryInfo_tid 
View_tid 
LAST_tid 
NULL_tid 
IXMLDOMAttribute_tid 
IXMLDOMCDATASection_tid 
IXMLDOMComment_tid 
IXMLDOMDocument_tid 
IXMLDOMDocument2_tid 
IXMLDOMDocument3_tid 
IXMLDOMDocumentFragment_tid 
IXMLDOMDocumentType_tid 
IXMLDOMElement_tid 
IXMLDOMEntityReference_tid 
IXMLDOMImplementation_tid 
IXMLDOMNamedNodeMap_tid 
IXMLDOMNode_tid 
IXMLDOMNodeList_tid 
IXMLDOMParseError2_tid 
IXMLDOMProcessingInstruction_tid 
IXMLDOMSchemaCollection_tid 
IXMLDOMSchemaCollection2_tid 
IXMLDOMSelection_tid 
IXMLDOMText_tid 
IXMLElement_tid 
IXMLDocument_tid 
IXMLHTTPRequest_tid 
IXSLProcessor_tid 
IXSLTemplate_tid 
IVBSAXAttributes_tid 
IVBSAXContentHandler_tid 
IVBSAXDeclHandler_tid 
IVBSAXDTDHandler_tid 
IVBSAXEntityResolver_tid 
IVBSAXErrorHandler_tid 
IVBSAXLexicalHandler_tid 
IVBSAXLocator_tid 
IVBSAXXMLFilter_tid 
IVBSAXXMLReader_tid 
IMXAttributes_tid 
IMXReaderControl_tid 
IMXWriter_tid 
IVBMXNamespaceManager_tid 
IServerXMLHTTPRequest_tid 
LAST_tid 
NULL_tid 
ITextDocument_tid 
ITextRange_tid 
ITextSelection_tid 
ITextFont_tid 
ITextPara_tid 
LAST_tid 
NULL_tid 
IDictionary_tid 
IDrive_tid 
IDriveCollection_tid 
IFile_tid 
IFileCollection_tid 
IFileSystem3_tid 
IFolder_tid 
IFolderCollection_tid 
ITextStream_tid 
LAST_tid 
NULL_tid 
IWshCollection_tid 
IWshEnvironment_tid 
IWshExec_tid 
IWshShell3_tid 
IWshShortcut_tid 
LAST_tid 

Definition at line 44 of file msxml_private.h.

44 {
87} tid_t;
tid_t
Definition: msxml_private.h:44
@ IVBSAXDTDHandler_tid
Definition: msxml_private.h:74
@ IXMLDOMNodeList_tid
Definition: msxml_private.h:59
@ IXMLDOMDocumentFragment_tid
Definition: msxml_private.h:52
@ IXMLDOMElement_tid
Definition: msxml_private.h:54
@ IMXReaderControl_tid
Definition: msxml_private.h:82
@ IXMLDOMEntityReference_tid
Definition: msxml_private.h:55
@ IXMLDocument_tid
Definition: msxml_private.h:67
@ IXMLDOMSchemaCollection2_tid
Definition: msxml_private.h:63
@ IVBSAXContentHandler_tid
Definition: msxml_private.h:72
@ IVBSAXLocator_tid
Definition: msxml_private.h:78
@ IXMLElement_tid
Definition: msxml_private.h:66
@ IXMLDOMNamedNodeMap_tid
Definition: msxml_private.h:57
@ IXMLDOMNode_tid
Definition: msxml_private.h:58
@ IXMLDOMText_tid
Definition: msxml_private.h:65
@ LAST_tid
Definition: msxml_private.h:86
@ IXMLDOMCDATASection_tid
Definition: msxml_private.h:47
@ IXMLDOMDocument3_tid
Definition: msxml_private.h:51
@ IMXWriter_tid
Definition: msxml_private.h:83
@ IServerXMLHTTPRequest_tid
Definition: msxml_private.h:85
@ IXMLDOMProcessingInstruction_tid
Definition: msxml_private.h:61
@ IVBSAXEntityResolver_tid
Definition: msxml_private.h:75
@ IVBSAXErrorHandler_tid
Definition: msxml_private.h:76
@ IXMLHTTPRequest_tid
Definition: msxml_private.h:68
@ IVBSAXXMLFilter_tid
Definition: msxml_private.h:79
@ IXMLDOMImplementation_tid
Definition: msxml_private.h:56
@ IVBSAXXMLReader_tid
Definition: msxml_private.h:80
@ IVBMXNamespaceManager_tid
Definition: msxml_private.h:84
@ IXMLDOMDocument2_tid
Definition: msxml_private.h:50
@ NULL_tid
Definition: msxml_private.h:45
@ IXMLDOMSchemaCollection_tid
Definition: msxml_private.h:62
@ IXMLDOMDocument_tid
Definition: msxml_private.h:49
@ IMXAttributes_tid
Definition: msxml_private.h:81
@ IXMLDOMDocumentType_tid
Definition: msxml_private.h:53
@ IXSLProcessor_tid
Definition: msxml_private.h:69
@ IVBSAXDeclHandler_tid
Definition: msxml_private.h:73
@ IXMLDOMAttribute_tid
Definition: msxml_private.h:46
@ IXSLTemplate_tid
Definition: msxml_private.h:70
@ IXMLDOMSelection_tid
Definition: msxml_private.h:64
@ IXMLDOMParseError2_tid
Definition: msxml_private.h:60
@ IXMLDOMComment_tid
Definition: msxml_private.h:48
@ IVBSAXLexicalHandler_tid
Definition: msxml_private.h:77
@ IVBSAXAttributes_tid
Definition: msxml_private.h:71

Function Documentation

◆ __WINE_ALLOC_SIZE()

static void * __WINE_ALLOC_SIZE ( )
inlinestatic

◆ bind_url()

HRESULT bind_url ( IMoniker mon,
HRESULT(*)(void *, char *, DWORD onDataAvailable,
void obj,
bsc_t **  ret 
)

Definition at line 288 of file bsc.c.

290{
291 bsc_t *bsc;
292 IBindCtx *pbc;
293 HRESULT hr;
294
295 TRACE("%p\n", mon);
296
297 hr = CreateBindCtx(0, &pbc);
298 if(FAILED(hr))
299 return hr;
300
301 bsc = heap_alloc(sizeof(bsc_t));
302
303 bsc->IBindStatusCallback_iface.lpVtbl = &bsc_vtbl;
304 bsc->ref = 1;
305 bsc->obj = obj;
306 bsc->onDataAvailable = onDataAvailable;
307 bsc->binding = NULL;
308 bsc->memstream = NULL;
309 bsc->hres = S_OK;
310
311 hr = RegisterBindStatusCallback(pbc, &bsc->IBindStatusCallback_iface, NULL, 0);
312 if(SUCCEEDED(hr))
313 {
315 hr = IMoniker_BindToStorage(mon, pbc, NULL, &IID_IStream, (LPVOID*)&stream);
316 if(stream)
317 IStream_Release(stream);
318 IBindCtx_Release(pbc);
319 }
320
321 if(FAILED(hr))
322 {
323 IBindStatusCallback_Release(&bsc->IBindStatusCallback_iface);
324 bsc = NULL;
325 }
326
327 *ret = bsc;
328 return hr;
329}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
static const struct IBindStatusCallbackVtbl bsc_vtbl
Definition: bsc.c:230
#define NULL
Definition: types.h:112
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
static IBindStatusCallbackEx bsc
Definition: url.c:2150
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
Definition: bindctx.c:556
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4
Definition: bsc.c:46
Definition: parse.h:23
HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbscPrevious, DWORD dwReserved)
Definition: bindctx.c:615
int ret

◆ create_moniker_from_url()

HRESULT create_moniker_from_url ( LPCWSTR  url,
IMoniker **  mon 
)

Definition at line 273 of file bsc.c.

274{
275 HRESULT hr;
276 IUri *uri;
277
278 TRACE("%s\n", debugstr_w(url));
279
280 if (FAILED(hr = create_uri(url, &uri)))
281 return hr;
282
283 hr = CreateURLMonikerEx2(NULL, uri, mon, 0);
284 IUri_Release(uri);
285 return hr;
286}
HRESULT create_uri(const WCHAR *url, IUri **uri)
Definition: bsc.c:245
#define debugstr_w
Definition: kernel32.h:32
static const WCHAR url[]
Definition: encode.c:1432
const char * uri
Definition: sec_mgr.c:1588
HRESULT WINAPI CreateURLMonikerEx2(IMoniker *pmkContext, IUri *pUri, IMoniker **ppmk, DWORD dwFlags)
Definition: umon.c:668

◆ create_parseError()

IXMLDOMParseError * create_parseError ( LONG  code,
BSTR  url,
BSTR  reason,
BSTR  srcText,
LONG  line,
LONG  linepos,
LONG  filepos 
)

Definition at line 329 of file parseerror.c.

331{
333
334 This = heap_alloc( sizeof(*This) );
335 if ( !This )
336 return NULL;
337
338 This->IXMLDOMParseError2_iface.lpVtbl = &XMLDOMParseError2Vtbl;
339 This->ref = 1;
340
341 This->code = code;
342 This->url = url;
343 This->reason = reason;
344 This->srcText = srcText;
345 This->line = line;
346 This->linepos = linepos;
347 This->filepos = filepos;
348
349 init_dispex(&This->dispex, (IUnknown*)&This->IXMLDOMParseError2_iface, &parseError_dispex);
350
351 return (IXMLDOMParseError*)&This->IXMLDOMParseError2_iface;
352}
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
static dispex_static_data_t parseError_dispex
Definition: parseerror.c:322
static const struct IXMLDOMParseError2Vtbl XMLDOMParseError2Vtbl
Definition: parseerror.c:295
Definition: inflate.c:139
Definition: parser.c:49

◆ create_uri()

HRESULT create_uri ( const WCHAR url,
IUri **  uri 
)

Definition at line 245 of file bsc.c.

246{
248
249 TRACE("%s\n", debugstr_w(url));
250
251 if (!PathIsURLW(url))
252 {
253 WCHAR fullpath[MAX_PATH];
254 DWORD needed = ARRAY_SIZE(fileUrl);
255
256 if (!PathSearchAndQualifyW(url, fullpath, ARRAY_SIZE(fullpath)))
257 {
258 WARN("can't find path\n");
259 return E_FAIL;
260 }
261
262 if (FAILED(UrlCreateFromPathW(fullpath, fileUrl, &needed, 0)))
263 {
264 ERR("can't create url from path\n");
265 return E_FAIL;
266 }
267 url = fileUrl;
268 }
269
270 return CreateUri(url, Uri_CREATE_ALLOW_RELATIVE | Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME, 0, uri);
271}
#define ARRAY_SIZE(A)
Definition: main.h:33
#define WARN(fmt,...)
Definition: debug.h:112
#define ERR(fmt,...)
Definition: debug.h:110
#define E_FAIL
Definition: ddrawi.h:102
#define MAX_PATH
Definition: compat.h:34
BOOL WINAPI PathSearchAndQualifyW(LPCWSTR lpszPath, LPWSTR lpszBuf, UINT cchBuf)
Definition: path.c:3226
HRESULT WINAPI UrlCreateFromPathW(LPCWSTR pszPath, LPWSTR pszUrl, LPDWORD pcchUrl, DWORD dwReserved)
Definition: url.c:2497
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
Definition: url.c:2432
HRESULT WINAPI CreateUri(LPCWSTR pwzURI, DWORD dwFlags, DWORD_PTR dwReserved, IUri **ppURI)
Definition: uri.c:5700
#define INTERNET_MAX_URL_LENGTH
Definition: session.c:1418
unsigned long DWORD
Definition: ntddk_ex.h:95
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by create_moniker_from_url().

◆ detach_bsc()

HRESULT detach_bsc ( bsc_t bsc)

Definition at line 331 of file bsc.c.

332{
334
335 if(bsc->binding)
336 IBinding_Abort(bsc->binding);
337
338 bsc->obj = NULL;
339 hres = bsc->hres;
340 IBindStatusCallback_Release(&bsc->IBindStatusCallback_iface);
341
342 return hres;
343}
HRESULT hres
Definition: protocol.c:465

◆ dispex_query_interface()

BOOL dispex_query_interface ( DispatchEx This,
REFIID  riid,
void **  ppv 
)

Definition at line 1656 of file dispex.c.

1657{
1659 *ppv = &This->IDispatchEx_iface;
1660 else if(IsEqualGUID(&IID_IDispatchEx, riid))
1661 *ppv = &This->IDispatchEx_iface;
1662 else if(IsEqualGUID(&IID_IDispatchJS, riid))
1663 *ppv = NULL;
1664 else if(IsEqualGUID(&IID_UndocumentedScriptIface, riid))
1665 *ppv = NULL;
1666 else
1667 return FALSE;
1668
1669 if(*ppv)
1670 IUnknown_AddRef((IUnknown*)*ppv);
1671 return TRUE;
1672}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147

Referenced by CustomDoc_QueryInterface(), Function_QueryInterface(), HTMLAttributeCollection_QueryInterface(), HTMLCurrentStyle_QueryInterface(), HTMLDOMAttribute_QueryInterface(), HTMLDOMChildrenCollection_QueryInterface(), HTMLDOMImplementation_QueryInterface(), HTMLDOMNode_QI(), HTMLElementCollection_QueryInterface(), HTMLEventObj_QueryInterface(), HTMLFiltersCollection_QueryInterface(), HTMLImageElementFactory_QueryInterface(), HTMLLocation_QueryInterface(), HTMLMimeTypesCollection_QueryInterface(), HTMLOptionElementFactory_QueryInterface(), HTMLPluginsCollection_QueryInterface(), HTMLRect_QueryInterface(), HTMLScreen_QueryInterface(), HTMLSelectionObject_QueryInterface(), HTMLStorage_QueryInterface(), HTMLStyle_QueryInterface(), HTMLStyleSheet_QueryInterface(), HTMLStyleSheetRulesCollection_QueryInterface(), HTMLStyleSheetsCollection_QueryInterface(), HTMLTxtRange_QueryInterface(), HTMLWindow2_QueryInterface(), HTMLXMLHttpRequest_QueryInterface(), HTMLXMLHttpRequestFactory_QueryInterface(), MXAttributes_QueryInterface(), mxwriter_QueryInterface(), OmHistory_QueryInterface(), OmNavigator_QueryInterface(), parseError_QueryInterface(), vbnamespacemanager_QueryInterface(), xslprocessor_QueryInterface(), and xsltemplate_QueryInterface().

◆ DOMDocument_create()

HRESULT DOMDocument_create ( MSXML_VERSION  version,
void **  ppObj 
)

Definition at line 3727 of file domdoc.c.

3728{
3729 MESSAGE("This program tried to use a DOMDocument object, but\n"
3730 "libxml2 support was not present at compile time.\n");
3731 return E_NOTIMPL;
3732}
#define E_NOTIMPL
Definition: ddrawi.h:99
#define MESSAGE
Definition: options.h:86

Referenced by DllGetClassObject(), and xslprocessor_put_input().

◆ DOMDocument_version()

static const CLSID * DOMDocument_version ( MSXML_VERSION  v)
inlinestatic

Definition at line 508 of file msxml_private.h.

509{
510 switch (v)
511 {
512 default:
513 case MSXML_DEFAULT: return &CLSID_DOMDocument;
514 case MSXML3: return &CLSID_DOMDocument30;
515 case MSXML4: return &CLSID_DOMDocument40;
516 case MSXML6: return &CLSID_DOMDocument60;
517 }
518}
const GLdouble * v
Definition: gl.h:2040
const struct _GUID CLSID_DOMDocument

◆ get_riid_from_tid()

const IID * get_riid_from_tid ( enum tid_t  tid)

Definition at line 143 of file dispex.c.

144{
145 return tid_ids[tid].iid;
146}
static TfClientId tid
static REFIID tid_ids[]
Definition: dispex.c:94

Referenced by DispatchEx_InvokeEx(), and get_typeinfo().

◆ get_typeinfo()

HRESULT get_typeinfo ( tid_t  tid,
ITypeInfo **  typeinfo 
)

Definition at line 61 of file ieframe_main.c.

62{
64
65 if(!typelib)
67 if(!typelib)
68 return hres;
69
70 if(!typeinfos[tid]) {
71 ITypeInfo *ti;
72
73 hres = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti);
74 if(FAILED(hres)) {
75 ERR("GetTypeInfoOfGuid(%s) failed: %08x\n", debugstr_guid(tid_ids[tid]), hres);
76 return hres;
77 }
78
80 ITypeInfo_Release(ti);
81 }
82
84 return S_OK;
85}
static ITypeLib * typelib
Definition: ieframe_main.c:34
static HRESULT load_typelib(void)
Definition: ieframe_main.c:45
static REFIID tid_ids[]
Definition: ieframe_main.c:37
static ITypeInfo * typeinfos[LAST_tid]
Definition: ieframe_main.c:35
#define InterlockedCompareExchangePointer
Definition: interlocked.h:129
#define debugstr_guid
Definition: kernel32.h:35

◆ heap_strdupW()

static LPWSTR heap_strdupW ( LPCWSTR  str)
inlinestatic

Definition at line 173 of file msxml_private.h.

174{
175 LPWSTR ret = NULL;
176
177 if(str) {
178 DWORD size;
179
180 size = (strlenW(str)+1)*sizeof(WCHAR);
182 if(ret)
183 memcpy(ret, str, size);
184 }
185
186 return ret;
187}
GLsizeiptr size
Definition: glext.h:5919
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static void size_t size
#define strlenW(s)
Definition: unicode.h:28
const WCHAR * str
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ init_dispex()

void init_dispex ( DispatchEx dispex,
IUnknown outer,
dispex_static_data_t data 
)

Definition at line 1737 of file dispex.c.

1738{
1739 dispex->IDispatchEx_iface.lpVtbl = &DispatchExVtbl;
1740 dispex->outer = outer;
1741 dispex->data = data;
1742 dispex->dynamic_data = NULL;
1743}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
static IDispatchExVtbl DispatchExVtbl
Definition: dispex.c:890
dispex_static_data_t * data
IDispatchEx IDispatchEx_iface
dispex_dynamic_data_t * dynamic_data
IUnknown * outer

◆ MXNamespaceManager_create()

HRESULT MXNamespaceManager_create ( void **  obj)

Definition at line 645 of file mxnamespace.c.

646{
648 struct nscontext *ctxt;
649
650 TRACE("(%p)\n", obj);
651
652 This = heap_alloc( sizeof (*This) );
653 if( !This )
654 return E_OUTOFMEMORY;
655
656 This->IMXNamespaceManager_iface.lpVtbl = &MXNamespaceManagerVtbl;
657 This->IVBMXNamespaceManager_iface.lpVtbl = &VBMXNamespaceManagerVtbl;
658 This->ref = 1;
659 init_dispex(&This->dispex, (IUnknown*)&This->IVBMXNamespaceManager_iface, &namespacemanager_dispex);
660
661 list_init(&This->ctxts);
662 ctxt = alloc_ns_context();
663 if (!ctxt)
664 {
666 return E_OUTOFMEMORY;
667 }
668
669 list_add_head(&This->ctxts, &ctxt->entry);
670
671 This->override = VARIANT_TRUE;
672
673 *obj = &This->IMXNamespaceManager_iface;
674
675 TRACE("returning iface %p\n", *obj);
676
677 return S_OK;
678}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
static void list_add_head(struct list_entry *head, struct list_entry *entry)
Definition: list.h:76
static void list_init(struct list_entry *head)
Definition: list.h:51
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const struct IVBMXNamespaceManagerVtbl VBMXNamespaceManagerVtbl
Definition: mxnamespace.c:611
static struct nscontext * alloc_ns_context(void)
Definition: mxnamespace.c:179
static const struct IMXNamespaceManagerVtbl MXNamespaceManagerVtbl
Definition: mxnamespace.c:389
static dispex_static_data_t namespacemanager_dispex
Definition: mxnamespace.c:638
struct list entry
Definition: mxnamespace.c:52

◆ MXWriter_create()

HRESULT MXWriter_create ( MSXML_VERSION  version,
void **  ppObj 
)

Definition at line 2585 of file mxwriter.c.

2586{
2587 static const WCHAR version10W[] = {'1','.','0',0};
2588 mxwriter *This;
2589 HRESULT hr;
2590
2591 TRACE("(%p)\n", ppObj);
2592
2593 This = heap_alloc( sizeof (*This) );
2594 if(!This)
2595 return E_OUTOFMEMORY;
2596
2597 This->IMXWriter_iface.lpVtbl = &MXWriterVtbl;
2598 This->ISAXContentHandler_iface.lpVtbl = &SAXContentHandlerVtbl;
2599 This->ISAXLexicalHandler_iface.lpVtbl = &SAXLexicalHandlerVtbl;
2600 This->ISAXDeclHandler_iface.lpVtbl = &SAXDeclHandlerVtbl;
2601 This->ISAXDTDHandler_iface.lpVtbl = &SAXDTDHandlerVtbl;
2602 This->ISAXErrorHandler_iface.lpVtbl = &SAXErrorHandlerVtbl;
2603 This->IVBSAXDeclHandler_iface.lpVtbl = &VBSAXDeclHandlerVtbl;
2604 This->IVBSAXLexicalHandler_iface.lpVtbl = &VBSAXLexicalHandlerVtbl;
2605 This->IVBSAXContentHandler_iface.lpVtbl = &VBSAXContentHandlerVtbl;
2606 This->IVBSAXDTDHandler_iface.lpVtbl = &VBSAXDTDHandlerVtbl;
2607 This->IVBSAXErrorHandler_iface.lpVtbl = &VBSAXErrorHandlerVtbl;
2608 This->ref = 1;
2609 This->class_version = version;
2610
2611 This->props[MXWriter_BOM] = VARIANT_TRUE;
2612 This->props[MXWriter_DisableEscaping] = VARIANT_FALSE;
2613 This->props[MXWriter_Indent] = VARIANT_FALSE;
2614 This->props[MXWriter_OmitXmlDecl] = VARIANT_FALSE;
2615 This->props[MXWriter_Standalone] = VARIANT_FALSE;
2616 This->prop_changed = FALSE;
2617 This->encoding = SysAllocString(utf16W);
2618 This->version = SysAllocString(version10W);
2619 This->xml_enc = XmlEncoding_UTF16;
2620
2621 This->element = NULL;
2622 This->cdata = FALSE;
2623 This->indent = 0;
2624 This->text = FALSE;
2625 This->newline = FALSE;
2626
2627 This->dest = NULL;
2628
2629 hr = init_output_buffer(This->xml_enc, &This->buffer);
2630 if (hr != S_OK) {
2631 SysFreeString(This->encoding);
2632 SysFreeString(This->version);
2633 heap_free(This);
2634 return hr;
2635 }
2636
2637 init_dispex(&This->dispex, (IUnknown*)&This->IMXWriter_iface, &mxwriter_dispex);
2638
2639 *ppObj = &This->IMXWriter_iface;
2640
2641 TRACE("returning iface %p\n", *ppObj);
2642
2643 return S_OK;
2644}
static const WCHAR version[]
Definition: asmname.c:66
static const IVBSAXErrorHandlerVtbl VBSAXErrorHandlerVtbl
Definition: mxwriter.c:2560
static const IVBSAXDeclHandlerVtbl VBSAXDeclHandlerVtbl
Definition: mxwriter.c:1903
static const IVBSAXDTDHandlerVtbl VBSAXDTDHandlerVtbl
Definition: mxwriter.c:2423
static dispex_static_data_t mxwriter_dispex
Definition: mxwriter.c:2578
static const struct ISAXContentHandlerVtbl SAXContentHandlerVtbl
Definition: mxwriter.c:1475
@ MXWriter_Standalone
Definition: mxwriter.c:108
@ MXWriter_DisableEscaping
Definition: mxwriter.c:105
@ MXWriter_OmitXmlDecl
Definition: mxwriter.c:107
@ MXWriter_BOM
Definition: mxwriter.c:104
@ MXWriter_Indent
Definition: mxwriter.c:106
static const IVBSAXLexicalHandlerVtbl VBSAXLexicalHandlerVtbl
Definition: mxwriter.c:2030
static const ISAXDTDHandlerVtbl SAXDTDHandlerVtbl
Definition: mxwriter.c:2343
static const struct ISAXLexicalHandlerVtbl SAXLexicalHandlerVtbl
Definition: mxwriter.c:1637
static const ISAXErrorHandlerVtbl SAXErrorHandlerVtbl
Definition: mxwriter.c:2484
static const WCHAR utf16W[]
Definition: mxwriter.c:85
static const struct IMXWriterVtbl MXWriterVtbl
Definition: mxwriter.c:1134
@ XmlEncoding_UTF16
Definition: mxwriter.c:64
static const IVBSAXContentHandlerVtbl VBSAXContentHandlerVtbl
Definition: mxwriter.c:2249
static const ISAXDeclHandlerVtbl SAXDeclHandlerVtbl
Definition: mxwriter.c:1795
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
void init_output_buffer(void)
Definition: utils.c:272

Referenced by DllGetClassObject().

◆ release_dispex()

void release_dispex ( DispatchEx This)

Definition at line 1706 of file dispex.c.

1707{
1708 dynamic_prop_t *prop;
1709
1710 if(!This->dynamic_data)
1711 return;
1712
1713 for(prop = This->dynamic_data->props; prop < This->dynamic_data->props + This->dynamic_data->prop_cnt; prop++) {
1714 VariantClear(&prop->var);
1715 heap_free(prop->name);
1716 }
1717
1718 heap_free(This->dynamic_data->props);
1719
1720 if(This->dynamic_data->func_disps) {
1721 func_obj_entry_t *iter;
1722
1723 for(iter = This->dynamic_data->func_disps; iter < This->dynamic_data->func_disps+This->data->data->func_disp_cnt; iter++) {
1724 if(iter->func_obj) {
1725 iter->func_obj->obj = NULL;
1726 IDispatchEx_Release(&iter->func_obj->dispex.IDispatchEx_iface);
1727 }
1728 VariantClear(&iter->val);
1729 }
1730
1731 heap_free(This->dynamic_data->func_disps);
1732 }
1733
1734 heap_free(This->dynamic_data);
1735}
LPWSTR name
Definition: dispex.c:59
VARIANT var
Definition: dispex.c:58
DispatchEx dispex
Definition: dispex.c:66
DispatchEx * obj
Definition: dispex.c:69
Definition: dispex.c:73
VARIANT val
Definition: dispex.c:75
func_disp_t * func_obj
Definition: dispex.c:74
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
Definition: variant.c:648

Referenced by CustomDoc_Release(), Function_Release(), HTMLCurrentStyle_Release(), HTMLDOMAttribute_Release(), HTMLDOMImplementation_Release(), HTMLDOMNode_delete_cycle_collectable(), HTMLElementCollection_Release(), HTMLEventObj_Release(), HTMLLocation_Release(), HTMLMimeTypesCollection_Release(), HTMLOptionElementFactory_Release(), HTMLPluginsCollection_Release(), HTMLScreen_Release(), HTMLSelectionObject_Release(), HTMLStorage_Release(), HTMLStyle_Release(), HTMLStyleSheet_Release(), HTMLStyleSheetRulesCollection_Release(), HTMLStyleSheetsCollection_Release(), HTMLTxtRange_Release(), HTMLXMLHttpRequest_Release(), HTMLXMLHttpRequestFactory_Release(), OmHistory_Release(), OmNavigator_Release(), and release_inner_window().

◆ release_typelib()

void release_typelib ( void  )

Definition at line 159 of file apps.c.

160{
161 unsigned i;
162
163 for (i = 0; i < ARRAY_SIZE(typeinfo); i++)
164 if (typeinfo[i])
165 ITypeInfo_Release(typeinfo[i]);
166
167 if (typelib)
168 ITypeLib_Release(typelib);
169}
static ITypeLib * typelib
Definition: apps.c:108
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248

◆ return_bstr()

static HRESULT return_bstr ( const WCHAR value,
BSTR p 
)
inlinestatic

Definition at line 422 of file msxml_private.h.

423{
424 if(!p)
425 return E_INVALIDARG;
426
427 if(value) {
429 if(!*p)
430 return E_OUTOFMEMORY;
431 }else {
432 *p = NULL;
433 }
434
435 return S_OK;
436}
#define E_INVALIDARG
Definition: ddrawi.h:101
GLfloat GLfloat p
Definition: glext.h:8902
Definition: pdh_main.c:94

Referenced by mxwriter_get_version().

◆ return_bstrn()

static HRESULT return_bstrn ( const WCHAR value,
int  len,
BSTR p 
)
inlinestatic

Definition at line 438 of file msxml_private.h.

439{
440 if(value) {
442 if(!*p)
443 return E_OUTOFMEMORY;
444 }else
445 *p = NULL;
446
447 return S_OK;
448}
GLenum GLsizei len
Definition: glext.h:6722
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:339

Referenced by VBSAXAttributes_getLocalName(), VBSAXAttributes_getQName(), VBSAXAttributes_getType(), VBSAXAttributes_getTypeFromName(), VBSAXAttributes_getTypeFromQName(), VBSAXAttributes_getURI(), VBSAXAttributes_getValue(), VBSAXAttributes_getValueFromName(), and VBSAXAttributes_getValueFromQName().

◆ return_null_bstr()

static HRESULT return_null_bstr ( BSTR p)
inlinestatic

Definition at line 475 of file msxml_private.h.

476{
477 if(!p)
478 return E_INVALIDARG;
479
480 *p = NULL;
481 return S_FALSE;
482}
#define S_FALSE
Definition: winerror.h:2357

◆ return_null_node()

static HRESULT return_null_node ( IXMLDOMNode **  p)
inlinestatic

Definition at line 450 of file msxml_private.h.

451{
452 if(!p)
453 return E_INVALIDARG;
454 *p = NULL;
455 return S_FALSE;
456}

◆ return_null_ptr()

static HRESULT return_null_ptr ( void **  p)
inlinestatic

Definition at line 458 of file msxml_private.h.

459{
460 if(!p)
461 return E_INVALIDARG;
462 *p = NULL;
463 return S_FALSE;
464}

◆ return_null_var()

static HRESULT return_null_var ( VARIANT p)
inlinestatic

Definition at line 466 of file msxml_private.h.

467{
468 if(!p)
469 return E_INVALIDARG;
470
471 V_VT(p) = VT_NULL;
472 return S_FALSE;
473}
@ VT_NULL
Definition: compat.h:2296
#define V_VT(A)
Definition: oleauto.h:211

◆ return_var_false()

static HRESULT return_var_false ( VARIANT_BOOL p)
inlinestatic

Definition at line 484 of file msxml_private.h.

485{
486 if(!p)
487 return E_INVALIDARG;
488
489 *p = VARIANT_FALSE;
490 return S_FALSE;
491}

◆ SAXAttributes_create()

HRESULT SAXAttributes_create ( MSXML_VERSION  version,
void **  ppObj 
)

Definition at line 3553 of file mxwriter.c.

3554{
3555 static const int default_count = 10;
3557
3558 TRACE("(%p)\n", ppObj);
3559
3560 This = heap_alloc( sizeof (*This) );
3561 if( !This )
3562 return E_OUTOFMEMORY;
3563
3564 This->IMXAttributes_iface.lpVtbl = &MXAttributesVtbl;
3565 This->ISAXAttributes_iface.lpVtbl = &SAXAttributesVtbl;
3566 This->IVBSAXAttributes_iface.lpVtbl = &VBSAXAttributesVtbl;
3567 This->ref = 1;
3568
3569 This->class_version = version;
3570
3571 This->attr = heap_alloc(default_count*sizeof(mxattribute));
3572 This->length = 0;
3573 This->allocated = default_count;
3574
3575 *ppObj = &This->IMXAttributes_iface;
3576
3577 init_dispex(&This->dispex, (IUnknown*)&This->IMXAttributes_iface, &mxattrs_dispex);
3578
3579 TRACE("returning iface %p\n", *ppObj);
3580
3581 return S_OK;
3582}
static const struct IVBSAXAttributesVtbl VBSAXAttributesVtbl
Definition: mxwriter.c:3518
static dispex_static_data_t mxattrs_dispex
Definition: mxwriter.c:3546
static const ISAXAttributesVtbl SAXAttributesVtbl
Definition: mxwriter.c:3194
static const IMXAttributesVtbl MXAttributesVtbl
Definition: mxwriter.c:2923

Referenced by DllGetClassObject().

◆ SAXXMLReader_create()

HRESULT SAXXMLReader_create ( MSXML_VERSION  ,
void **   
)

Referenced by DllGetClassObject().

◆ SchemaCache_create()

HRESULT SchemaCache_create ( MSXML_VERSION  version,
void **  obj 
)

Definition at line 1647 of file schema.c.

1648{
1649 MESSAGE("This program tried to use a SchemaCache object, but\n"
1650 "libxml2 support was not present at compile time.\n");
1651 return E_NOTIMPL;
1652}

Referenced by DllGetClassObject().

◆ SchemaCache_version()

static const CLSID * SchemaCache_version ( MSXML_VERSION  v)
inlinestatic

Definition at line 520 of file msxml_private.h.

521{
522 switch (v)
523 {
524 default:
525 case MSXML_DEFAULT: return &CLSID_XMLSchemaCache;
526 case MSXML3: return &CLSID_XMLSchemaCache30;
527 case MSXML4: return &CLSID_XMLSchemaCache40;
528 case MSXML6: return &CLSID_XMLSchemaCache60;
529 }
530}

◆ ServerXMLHTTP_create()

HRESULT ServerXMLHTTP_create ( void **  obj)

Definition at line 2112 of file httprequest.c.

2113{
2114 MESSAGE("This program tried to use a ServerXMLHTTP object, but\n"
2115 "libxml2 support was not present at compile time.\n");
2116 return E_NOTIMPL;
2117}

◆ XMLDocument_create()

HRESULT XMLDocument_create ( void **  )

◆ XMLHTTPRequest_create()

HRESULT XMLHTTPRequest_create ( void **  ppObj)

Definition at line 2105 of file httprequest.c.

2106{
2107 MESSAGE("This program tried to use a XMLHTTPRequest object, but\n"
2108 "libxml2 support was not present at compile time.\n");
2109 return E_NOTIMPL;
2110}

◆ XMLParser_create()

HRESULT XMLParser_create ( void **  ppObj)

Definition at line 437 of file xmlparser.c.

438{
440
441 TRACE("(%p)\n", ppObj);
442
443 This = heap_alloc( sizeof(xmlparser) );
444 if(!This)
445 return E_OUTOFMEMORY;
446
447 This->IXMLParser_iface.lpVtbl = &xmlparser_vtbl;
448 This->nodefactory = NULL;
449 This->input = NULL;
450 This->flags = 0;
451 This->state = XMLPARSER_IDLE;
452 This->ref = 1;
453
454 *ppObj = &This->IXMLParser_iface;
455
456 TRACE("returning iface %p\n", *ppObj);
457
458 return S_OK;
459}
static const struct IXMLParserVtbl xmlparser_vtbl
Definition: xmlparser.c:402
@ XMLPARSER_IDLE
Definition: xmlparser.idl:195

◆ XMLView_create()

HRESULT XMLView_create ( void **  ppObj)

Definition at line 1460 of file xmlview.c.

1461{
1462 MESSAGE("This program tried to use a XMLView object, but\n"
1463 "libxml2 support was not present at compile time.\n");
1464 return E_NOTIMPL;
1465}

◆ XSLTemplate_create()

HRESULT XSLTemplate_create ( void **  ppObj)

Definition at line 268 of file stylesheet.c.

269{
271
272 TRACE("(%p)\n", ppObj);
273
274 This = heap_alloc( sizeof (*This) );
275 if(!This)
276 return E_OUTOFMEMORY;
277
278 This->IXSLTemplate_iface.lpVtbl = &XSLTemplateVtbl;
279 This->ref = 1;
280 This->node = NULL;
281 init_dispex(&This->dispex, (IUnknown*)&This->IXSLTemplate_iface, &xsltemplate_dispex);
282
283 *ppObj = &This->IXSLTemplate_iface;
284
285 TRACE("returning iface %p\n", *ppObj);
286
287 return S_OK;
288}
static dispex_static_data_t xsltemplate_dispex
Definition: stylesheet.c:261
static const struct IXSLTemplateVtbl XSLTemplateVtbl
Definition: stylesheet.c:242

Variable Documentation

◆ DECLSPEC_HIDDEN

HINSTANCE MSXML_hInstance DECLSPEC_HIDDEN
extern

Definition at line 289 of file d3dcompiler_private.h.

◆ size

Initial value:
{
#define GetProcessHeap()
Definition: compat.h:736
#define HeapReAlloc
Definition: compat.h:734
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
Definition: mem.c:156

Definition at line 168 of file msxml_private.h.

Referenced by heap_strdupW().