ReactOS  0.4.15-dev-321-g2d9b385
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,
96  DT_BIN_HEX,
97  DT_BOOLEAN,
98  DT_CHAR,
99  DT_DATE,
100  DT_DATE_TZ,
101  DT_DATETIME,
103  DT_ENTITY,
104  DT_ENTITIES,
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,
116  DT_NMTOKEN,
117  DT_NMTOKENS,
118  DT_NOTATION,
119  DT_NUMBER,
120  DT_R4,
121  DT_R8,
122  DT_STRING,
123  DT_TIME,
124  DT_TIME_TZ,
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

◆ 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

◆ 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  {
45  NULL_tid,
86  LAST_tid
87 } tid_t;
tid_t
Definition: msxml_private.h:44

Function Documentation

◆ __WINE_ALLOC_SIZE()

static void* __WINE_ALLOC_SIZE ( )
inlinestatic

◆ bind_url()

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

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  {
314  IStream *stream;
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 const struct IBindStatusCallbackVtbl bsc_vtbl
Definition: bsc.c:230
HRESULT hr
Definition: shlfolder.c:183
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
GLsizei GLsizei GLuint * obj
Definition: glext.h:6042
Definition: bsc.c:46
static IBindStatusCallbackEx bsc
Definition: url.c:2150
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbscPrevious, DWORD dwReserved)
Definition: bindctx.c:615
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
Definition: bindctx.c:556
LONG HRESULT
Definition: typedefs.h:78
int ret
Definition: parse.h:22
GLuint GLuint stream
Definition: glext.h:7522
#define S_OK
Definition: intsafe.h:59
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ create_moniker_from_url()

HRESULT create_moniker_from_url ( LPCWSTR  ,
IMoniker **   
)

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 hr
Definition: shlfolder.c:183
HRESULT create_uri(const WCHAR *url, IUri **uri)
Definition: bsc.c:245
const char * uri
Definition: sec_mgr.c:1588
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:78
static const WCHAR url[]
Definition: encode.c:1432
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 const struct IXMLDOMParseError2Vtbl XMLDOMParseError2Vtbl
Definition: parseerror.c:295
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR url[]
Definition: encode.c:1432
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
static dispex_static_data_t parseError_dispex
Definition: parseerror.c:322
char line[200]
Definition: main.c:97
int code
Definition: i386-dis.c:3591
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919

◆ create_uri()

HRESULT create_uri ( const WCHAR ,
IUri **   
)

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 }
const char * uri
Definition: sec_mgr.c:1588
#define WARN(fmt,...)
Definition: debug.h:112
#define E_FAIL
Definition: ddrawi.h:102
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
Definition: url.c:2432
#define debugstr_w
Definition: kernel32.h:32
#define INTERNET_MAX_URL_LENGTH
Definition: session.c:1418
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
HRESULT WINAPI UrlCreateFromPathW(LPCWSTR pszPath, LPWSTR pszUrl, LPDWORD pcchUrl, DWORD dwReserved)
Definition: url.c:2497
static const WCHAR url[]
Definition: encode.c:1432
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
#define ERR(fmt,...)
Definition: debug.h:110
#define ARRAY_SIZE(a)
Definition: main.h:24
BOOL WINAPI PathSearchAndQualifyW(LPCWSTR lpszPath, LPWSTR lpszBuf, UINT cchBuf)
Definition: path.c:3205
HRESULT WINAPI CreateUri(LPCWSTR pwzURI, DWORD dwFlags, DWORD_PTR dwReserved, IUri **ppURI)
Definition: uri.c:5700

Referenced by create_moniker_from_url().

◆ detach_bsc()

HRESULT detach_bsc ( bsc_t )

Definition at line 331 of file bsc.c.

332 {
333  HRESULT hres;
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 }
static IBindStatusCallbackEx bsc
Definition: url.c:2150
smooth NULL
Definition: ftsmooth.c:416
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:78

◆ dispex_query_interface()

BOOL dispex_query_interface ( DispatchEx ,
REFIID  ,
void **   
)

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
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
smooth NULL
Definition: ftsmooth.c:416
const GUID IID_IDispatch
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

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  ,
void **   
)

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 MESSAGE
Definition: options.h:86
#define E_NOTIMPL
Definition: ddrawi.h:99

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 tid_id_t tid_ids[]
Definition: dispex.c:99
REFIID iid
Definition: dispex.c:66
static TfClientId tid

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 {
63  HRESULT hres;
64 
65  if(!typelib)
66  hres = load_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 REFIID tid_ids[]
Definition: ieframe_main.c:37
static ITypeLib * typelib
Definition: ieframe_main.c:34
static ITypeInfo * typeinfos[LAST_tid]
Definition: ieframe_main.c:35
#define InterlockedCompareExchangePointer
Definition: interlocked.h:129
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:78
static HRESULT load_typelib(void)
Definition: ieframe_main.c:45
#define ERR(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static TfClientId tid

◆ 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);
181  ret = heap_alloc(size);
182  if(ret)
183  memcpy(ret, str, size);
184  }
185 
186  return ret;
187 }
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
static void size_t size
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
GLsizeiptr size
Definition: glext.h:5919
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned long DWORD
Definition: ntddk_ex.h:95
int ret
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ init_dispex()

void init_dispex ( DispatchEx ,
IUnknown ,
dispex_static_data_t  
)

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 }
smooth NULL
Definition: ftsmooth.c:416
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
static IDispatchExVtbl DispatchExVtbl
Definition: dispex.c:1638

◆ MXNamespaceManager_create()

HRESULT MXNamespaceManager_create ( void **  )

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  {
665  heap_free(This);
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 const struct IMXNamespaceManagerVtbl MXNamespaceManagerVtbl
Definition: mxnamespace.c:389
struct list entry
Definition: mxnamespace.c:52
static struct nscontext * alloc_ns_context(void)
Definition: mxnamespace.c:179
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
Definition: list.h:96
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const struct IVBMXNamespaceManagerVtbl VBMXNamespaceManagerVtbl
Definition: mxnamespace.c:611
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static dispex_static_data_t namespacemanager_dispex
Definition: mxnamespace.c:638
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ MXWriter_create()

HRESULT MXWriter_create ( MSXML_VERSION  ,
void **   
)

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 HRESULT init_output_buffer(xml_encoding encoding, output_buffer *buffer)
Definition: mxwriter.c:281
static const IVBSAXErrorHandlerVtbl VBSAXErrorHandlerVtbl
Definition: mxwriter.c:2560
HRESULT hr
Definition: shlfolder.c:183
static const IVBSAXDeclHandlerVtbl VBSAXDeclHandlerVtbl
Definition: mxwriter.c:1903
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
static const IVBSAXDTDHandlerVtbl VBSAXDTDHandlerVtbl
Definition: mxwriter.c:2423
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const ISAXDeclHandlerVtbl SAXDeclHandlerVtbl
Definition: mxwriter.c:1795
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR version[]
Definition: asmname.c:66
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
static const IVBSAXContentHandlerVtbl VBSAXContentHandlerVtbl
Definition: mxwriter.c:2249
static const IVBSAXLexicalHandlerVtbl VBSAXLexicalHandlerVtbl
Definition: mxwriter.c:2030
static const struct ISAXLexicalHandlerVtbl SAXLexicalHandlerVtbl
Definition: mxwriter.c:1637
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
static const ISAXErrorHandlerVtbl SAXErrorHandlerVtbl
Definition: mxwriter.c:2484
static const ISAXDTDHandlerVtbl SAXDTDHandlerVtbl
Definition: mxwriter.c:2343
LONG HRESULT
Definition: typedefs.h:78
static dispex_static_data_t mxwriter_dispex
Definition: mxwriter.c:2578
#define S_OK
Definition: intsafe.h:59
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
static const struct IMXWriterVtbl MXWriterVtbl
Definition: mxwriter.c:1134
static const struct ISAXContentHandlerVtbl SAXContentHandlerVtbl
Definition: mxwriter.c:1475
static const WCHAR utf16W[]
Definition: mxwriter.c:85
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

Referenced by DllGetClassObject().

◆ release_dispex()

void release_dispex ( DispatchEx )

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 }
VARIANT val
Definition: dispex.c:75
Definition: dispex.c:73
smooth NULL
Definition: ftsmooth.c:416
IDispatchEx IDispatchEx_iface
func_disp_t * func_obj
Definition: dispex.c:74
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
Definition: variant.c:648
VARIANT var
Definition: dispex.c:58
LPWSTR name
Definition: dispex.c:59
DispatchEx dispex
Definition: dispex.c:66
DispatchEx * obj
Definition: dispex.c:69
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

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
#define ARRAY_SIZE(a)
Definition: main.h:24

◆ 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) {
428  *p = SysAllocString(value);
429  if(!*p)
430  return E_OUTOFMEMORY;
431  }else {
432  *p = NULL;
433  }
434 
435  return S_OK;
436 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

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 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:339
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
GLenum GLsizei len
Definition: glext.h:6722
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

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
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
GLfloat GLfloat p
Definition: glext.h:8902

◆ 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 }
#define S_FALSE
Definition: winerror.h:2357
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
GLfloat GLfloat p
Definition: glext.h:8902

◆ 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 }
#define S_FALSE
Definition: winerror.h:2357
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
GLfloat GLfloat p
Definition: glext.h:8902

◆ 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 }
#define S_FALSE
Definition: winerror.h:2357
#define E_INVALIDARG
Definition: ddrawi.h:101
#define V_VT(A)
Definition: oleauto.h:211
GLfloat GLfloat p
Definition: glext.h:8902

◆ 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 }
#define S_FALSE
Definition: winerror.h:2357
#define E_INVALIDARG
Definition: ddrawi.h:101
GLfloat GLfloat p
Definition: glext.h:8902

◆ SAXAttributes_create()

HRESULT SAXAttributes_create ( MSXML_VERSION  ,
void **   
)

Definition at line 3553 of file mxwriter.c.

3554 {
3555  static const int default_count = 10;
3556  mxattributes *This;
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 void * heap_alloc(size_t len)
Definition: appwiz.h:65
static const ISAXAttributesVtbl SAXAttributesVtbl
Definition: mxwriter.c:3194
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const WCHAR version[]
Definition: asmname.c:66
#define TRACE(s)
Definition: solgame.cpp:4
static const IMXAttributesVtbl MXAttributesVtbl
Definition: mxwriter.c:2923
#define S_OK
Definition: intsafe.h:59
static dispex_static_data_t mxattrs_dispex
Definition: mxwriter.c:3546
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919

Referenced by DllGetClassObject().

◆ SAXXMLReader_create()

HRESULT SAXXMLReader_create ( MSXML_VERSION  ,
void **   
)

Referenced by DllGetClassObject().

◆ SchemaCache_create()

HRESULT SchemaCache_create ( MSXML_VERSION  ,
void **   
)

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 }
#define MESSAGE
Definition: options.h:86
#define E_NOTIMPL
Definition: ddrawi.h:99

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 }
const GLdouble * v
Definition: gl.h:2040

◆ ServerXMLHTTP_create()

HRESULT ServerXMLHTTP_create ( void **  )

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 }
#define MESSAGE
Definition: options.h:86
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ XMLDocument_create()

HRESULT XMLDocument_create ( void **  )

◆ XMLHTTPRequest_create()

HRESULT XMLHTTPRequest_create ( void **  )

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 }
#define MESSAGE
Definition: options.h:86
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ XMLParser_create()

HRESULT XMLParser_create ( void **  )

Definition at line 437 of file xmlparser.c.

438 {
439  xmlparser *This;
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 void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static const struct IXMLParserVtbl xmlparser_vtbl
Definition: xmlparser.c:402

◆ XMLView_create()

HRESULT XMLView_create ( void **  )

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 }
#define MESSAGE
Definition: options.h:86
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ XSLTemplate_create()

HRESULT XSLTemplate_create ( void **  )

Definition at line 268 of file stylesheet.c.

269 {
270  xsltemplate *This;
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 void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
static const struct IXSLTemplateVtbl XSLTemplateVtbl
Definition: stylesheet.c:242
static dispex_static_data_t xsltemplate_dispex
Definition: stylesheet.c:261

Variable Documentation

◆ DECLSPEC_HIDDEN

HINSTANCE MSXML_hInstance DECLSPEC_HIDDEN

Definition at line 155 of file crypt32_private.h.

◆ size

Initial value:
{
GLsizeiptr size
Definition: glext.h:5919
#define GetProcessHeap()
Definition: compat.h:404
#define HeapReAlloc
Definition: compat.h:402
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
Definition: mem.c:156

Definition at line 169 of file msxml_private.h.

Referenced by heap_strdupW().