ReactOS  0.4.14-dev-337-gf981a68
omnavigator.c File Reference
#include "mshtml_private.h"
Include dependency graph for omnavigator.c:

Go to the source code of this file.

Classes

struct  OmNavigator
 
struct  HTMLDOMImplementation
 
struct  HTMLPluginsCollection
 
struct  HTMLMimeTypesCollection
 

Typedefs

typedef struct HTMLPluginsCollection HTMLPluginsCollection
 
typedef struct HTMLMimeTypesCollection HTMLMimeTypesCollection
 

Functions

static HTMLDOMImplementationimpl_from_IHTMLDOMImplementation (IHTMLDOMImplementation *iface)
 
static HRESULT WINAPI HTMLDOMImplementation_QueryInterface (IHTMLDOMImplementation *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLDOMImplementation_AddRef (IHTMLDOMImplementation *iface)
 
static ULONG WINAPI HTMLDOMImplementation_Release (IHTMLDOMImplementation *iface)
 
static HRESULT WINAPI HTMLDOMImplementation_GetTypeInfoCount (IHTMLDOMImplementation *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLDOMImplementation_GetTypeInfo (IHTMLDOMImplementation *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLDOMImplementation_GetIDsOfNames (IHTMLDOMImplementation *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLDOMImplementation_Invoke (IHTMLDOMImplementation *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLDOMImplementation_hasFeature (IHTMLDOMImplementation *iface, BSTR feature, VARIANT version, VARIANT_BOOL *pfHasFeature)
 
HRESULT create_dom_implementation (IHTMLDOMImplementation **ret)
 
static OmHistoryimpl_from_IOmHistory (IOmHistory *iface)
 
static HRESULT WINAPI OmHistory_QueryInterface (IOmHistory *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OmHistory_AddRef (IOmHistory *iface)
 
static ULONG WINAPI OmHistory_Release (IOmHistory *iface)
 
static HRESULT WINAPI OmHistory_GetTypeInfoCount (IOmHistory *iface, UINT *pctinfo)
 
static HRESULT WINAPI OmHistory_GetTypeInfo (IOmHistory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI OmHistory_GetIDsOfNames (IOmHistory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI OmHistory_Invoke (IOmHistory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI OmHistory_get_length (IOmHistory *iface, short *p)
 
static HRESULT WINAPI OmHistory_back (IOmHistory *iface, VARIANT *pvargdistance)
 
static HRESULT WINAPI OmHistory_forward (IOmHistory *iface, VARIANT *pvargdistance)
 
static HRESULT WINAPI OmHistory_go (IOmHistory *iface, VARIANT *pvargdistance)
 
HRESULT create_history (HTMLInnerWindow *window, OmHistory **ret)
 
static HTMLPluginsCollectionimpl_from_IHTMLPluginsCollection (IHTMLPluginsCollection *iface)
 
static HRESULT WINAPI HTMLPluginsCollection_QueryInterface (IHTMLPluginsCollection *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLPluginsCollection_AddRef (IHTMLPluginsCollection *iface)
 
static ULONG WINAPI HTMLPluginsCollection_Release (IHTMLPluginsCollection *iface)
 
static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfoCount (IHTMLPluginsCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfo (IHTMLPluginsCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLPluginsCollection_GetIDsOfNames (IHTMLPluginsCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLPluginsCollection_Invoke (IHTMLPluginsCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLPluginsCollection_get_length (IHTMLPluginsCollection *iface, LONG *p)
 
static HRESULT WINAPI HTMLPluginsCollection_refresh (IHTMLPluginsCollection *iface, VARIANT_BOOL reload)
 
static HRESULT create_plugins_collection (OmNavigator *navigator, HTMLPluginsCollection **ret)
 
static HTMLMimeTypesCollectionimpl_from_IHTMLMimeTypesCollection (IHTMLMimeTypesCollection *iface)
 
static HRESULT WINAPI HTMLMimeTypesCollection_QueryInterface (IHTMLMimeTypesCollection *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLMimeTypesCollection_AddRef (IHTMLMimeTypesCollection *iface)
 
static ULONG WINAPI HTMLMimeTypesCollection_Release (IHTMLMimeTypesCollection *iface)
 
static HRESULT WINAPI HTMLMimeTypesCollection_GetTypeInfoCount (IHTMLMimeTypesCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLMimeTypesCollection_GetTypeInfo (IHTMLMimeTypesCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLMimeTypesCollection_GetIDsOfNames (IHTMLMimeTypesCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLMimeTypesCollection_Invoke (IHTMLMimeTypesCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLMimeTypesCollection_get_length (IHTMLMimeTypesCollection *iface, LONG *p)
 
static HRESULT create_mime_types_collection (OmNavigator *navigator, HTMLMimeTypesCollection **ret)
 
static OmNavigatorimpl_from_IOmNavigator (IOmNavigator *iface)
 
static HRESULT WINAPI OmNavigator_QueryInterface (IOmNavigator *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OmNavigator_AddRef (IOmNavigator *iface)
 
static ULONG WINAPI OmNavigator_Release (IOmNavigator *iface)
 
static HRESULT WINAPI OmNavigator_GetTypeInfoCount (IOmNavigator *iface, UINT *pctinfo)
 
static HRESULT WINAPI OmNavigator_GetTypeInfo (IOmNavigator *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI OmNavigator_GetIDsOfNames (IOmNavigator *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI OmNavigator_Invoke (IOmNavigator *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI OmNavigator_get_appCodeName (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_appName (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_appVersion (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_userAgent (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_javaEnabled (IOmNavigator *iface, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI OmNavigator_taintEnabled (IOmNavigator *iface, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI OmNavigator_get_mimeTypes (IOmNavigator *iface, IHTMLMimeTypesCollection **p)
 
static HRESULT WINAPI OmNavigator_get_plugins (IOmNavigator *iface, IHTMLPluginsCollection **p)
 
static HRESULT WINAPI OmNavigator_get_cookieEnabled (IOmNavigator *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI OmNavigator_get_opsProfile (IOmNavigator *iface, IHTMLOpsProfile **p)
 
static HRESULT WINAPI OmNavigator_toString (IOmNavigator *iface, BSTR *String)
 
static HRESULT WINAPI OmNavigator_get_cpuClass (IOmNavigator *iface, BSTR *p)
 
static HRESULT get_language_string (LCID lcid, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_systemLanguage (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_browserLanguage (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_userLanguage (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_platform (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_appMinorVersion (IOmNavigator *iface, BSTR *p)
 
static HRESULT WINAPI OmNavigator_get_connectionSpeed (IOmNavigator *iface, LONG *p)
 
static HRESULT WINAPI OmNavigator_get_onLine (IOmNavigator *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI OmNavigator_get_userProfile (IOmNavigator *iface, IHTMLOpsProfile **p)
 
IOmNavigator * OmNavigator_Create (void)
 

Variables

static const IHTMLDOMImplementationVtbl HTMLDOMImplementationVtbl
 
static const tid_t HTMLDOMImplementation_iface_tids []
 
static dispex_static_data_t HTMLDOMImplementation_dispex
 
static const IOmHistoryVtbl OmHistoryVtbl
 
static const tid_t OmHistory_iface_tids []
 
static dispex_static_data_t OmHistory_dispex
 
static const IHTMLPluginsCollectionVtbl HTMLPluginsCollectionVtbl
 
static const tid_t HTMLPluginsCollection_iface_tids []
 
static dispex_static_data_t HTMLPluginsCollection_dispex
 
static const IHTMLMimeTypesCollectionVtbl HTMLMimeTypesCollectionVtbl
 
static const tid_t HTMLMimeTypesCollection_iface_tids []
 
static dispex_static_data_t HTMLMimeTypesCollection_dispex
 
static const IOmNavigatorVtbl OmNavigatorVtbl
 
static const tid_t OmNavigator_iface_tids []
 
static dispex_static_data_t OmNavigator_dispex
 

Typedef Documentation

◆ HTMLMimeTypesCollection

◆ HTMLPluginsCollection

Definition at line 31 of file omnavigator.c.

Function Documentation

◆ create_dom_implementation()

HRESULT create_dom_implementation ( IHTMLDOMImplementation **  ret)

Definition at line 168 of file omnavigator.c.

169 {
170  HTMLDOMImplementation *dom_implementation;
171 
172  dom_implementation = heap_alloc_zero(sizeof(*dom_implementation));
173  if(!dom_implementation)
174  return E_OUTOFMEMORY;
175 
176  dom_implementation->IHTMLDOMImplementation_iface.lpVtbl = &HTMLDOMImplementationVtbl;
177  dom_implementation->ref = 1;
178 
179  init_dispex(&dom_implementation->dispex, (IUnknown*)&dom_implementation->IHTMLDOMImplementation_iface,
181 
182  *ret = &dom_implementation->IHTMLDOMImplementation_iface;
183  return S_OK;
184 }
IHTMLDOMImplementation IHTMLDOMImplementation_iface
Definition: omnavigator.c:46
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IHTMLDOMImplementationVtbl HTMLDOMImplementationVtbl
Definition: omnavigator.c:146
int ret
#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 dispex_static_data_t HTMLDOMImplementation_dispex
Definition: omnavigator.c:161

Referenced by HTMLDocument5_get_implementation().

◆ create_history()

HRESULT create_history ( HTMLInnerWindow window,
OmHistory **  ret 
)

Definition at line 334 of file omnavigator.c.

335 {
336  OmHistory *history;
337 
338  history = heap_alloc_zero(sizeof(*history));
339  if(!history)
340  return E_OUTOFMEMORY;
341 
342  init_dispex(&history->dispex, (IUnknown*)&history->IOmHistory_iface, &OmHistory_dispex);
343  history->IOmHistory_iface.lpVtbl = &OmHistoryVtbl;
344  history->ref = 1;
345 
346  history->window = window;
347 
348  *ret = history;
349  return S_OK;
350 }
IOmHistory IOmHistory_iface
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IOmHistoryVtbl OmHistoryVtbl
Definition: omnavigator.c:308
HTMLInnerWindow * window
int ret
static IHTMLWindow2 * window
Definition: events.c:77
#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 dispex_static_data_t OmHistory_dispex
Definition: omnavigator.c:326
DispatchEx dispex

Referenced by HTMLWindow2_get_history().

◆ create_mime_types_collection()

static HRESULT create_mime_types_collection ( OmNavigator navigator,
HTMLMimeTypesCollection **  ret 
)
static

Definition at line 634 of file omnavigator.c.

635 {
637 
638  col = heap_alloc_zero(sizeof(*col));
639  if(!col)
640  return E_OUTOFMEMORY;
641 
643  col->ref = 1;
644  col->navigator = navigator;
645 
648 
649  *ret = col;
650  return S_OK;
651 }
static dispex_static_data_t HTMLMimeTypesCollection_dispex
Definition: omnavigator.c:627
OmNavigator * navigator
Definition: omnavigator.c:514
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IHTMLMimeTypesCollectionVtbl HTMLMimeTypesCollectionVtbl
Definition: omnavigator.c:612
IHTMLMimeTypesCollection IHTMLMimeTypesCollection_iface
Definition: omnavigator.c:510
int ret
#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

Referenced by OmNavigator_get_mimeTypes().

◆ create_plugins_collection()

static HRESULT create_plugins_collection ( OmNavigator navigator,
HTMLPluginsCollection **  ret 
)
static

Definition at line 489 of file omnavigator.c.

490 {
492 
493  col = heap_alloc_zero(sizeof(*col));
494  if(!col)
495  return E_OUTOFMEMORY;
496 
498  col->ref = 1;
499  col->navigator = navigator;
500 
503 
504  *ret = col;
505  return S_OK;
506 }
static dispex_static_data_t HTMLPluginsCollection_dispex
Definition: omnavigator.c:482
IHTMLPluginsCollection IHTMLPluginsCollection_iface
Definition: omnavigator.c:354
OmNavigator * navigator
Definition: omnavigator.c:358
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
int ret
static const IHTMLPluginsCollectionVtbl HTMLPluginsCollectionVtbl
Definition: omnavigator.c:466
#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

Referenced by OmNavigator_get_plugins().

◆ get_language_string()

static HRESULT get_language_string ( LCID  lcid,
BSTR p 
)
static

Definition at line 932 of file omnavigator.c.

933 {
934  BSTR ret;
935  int len;
936 
937  len = LCIDToLocaleName(lcid, NULL, 0, 0);
938  if(!len) {
939  WARN("LCIDToLocaleName failed: %u\n", GetLastError());
940  return E_FAIL;
941  }
942 
944  if(!ret)
945  return E_OUTOFMEMORY;
946 
947  len = LCIDToLocaleName(lcid, ret, len, 0);
948  if(!len) {
949  WARN("LCIDToLocaleName failed: %u\n", GetLastError());
951  return E_FAIL;
952  }
953 
954  *p = ret;
955  return S_OK;
956 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:342
#define WARN(fmt,...)
Definition: debug.h:111
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
OLECHAR * BSTR
Definition: compat.h:1942
#define E_FAIL
Definition: ddrawi.h:102
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
int ret
GLenum GLsizei len
Definition: glext.h:6722
#define S_OK
Definition: intsafe.h:59
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:274
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by OmNavigator_get_browserLanguage(), OmNavigator_get_systemLanguage(), and OmNavigator_get_userLanguage().

◆ HTMLDOMImplementation_AddRef()

static ULONG WINAPI HTMLDOMImplementation_AddRef ( IHTMLDOMImplementation *  iface)
static

Definition at line 76 of file omnavigator.c.

77 {
80 
81  TRACE("(%p) ref=%d\n", This, ref);
82 
83  return ref;
84 }
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ HTMLDOMImplementation_GetIDsOfNames()

static HRESULT WINAPI HTMLDOMImplementation_GetIDsOfNames ( IHTMLDOMImplementation *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 116 of file omnavigator.c.

118 {
120 
121  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames,
122  cNames, lcid, rgDispId);
123 }
REFIID riid
Definition: precomp.h:44
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51

◆ HTMLDOMImplementation_GetTypeInfo()

static HRESULT WINAPI HTMLDOMImplementation_GetTypeInfo ( IHTMLDOMImplementation *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 108 of file omnavigator.c.

110 {
112 
113  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
114 }
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51

◆ HTMLDOMImplementation_GetTypeInfoCount()

static HRESULT WINAPI HTMLDOMImplementation_GetTypeInfoCount ( IHTMLDOMImplementation *  iface,
UINT pctinfo 
)
static

Definition at line 101 of file omnavigator.c.

102 {
104 
105  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
106 }
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51

◆ HTMLDOMImplementation_hasFeature()

static HRESULT WINAPI HTMLDOMImplementation_hasFeature ( IHTMLDOMImplementation *  iface,
BSTR  feature,
VARIANT  version,
VARIANT_BOOL pfHasFeature 
)
static

Definition at line 135 of file omnavigator.c.

137 {
139 
140  FIXME("(%p)->(%s %s %p) returning false\n", This, debugstr_w(feature), debugstr_variant(&version), pfHasFeature);
141 
142  *pfHasFeature = VARIANT_FALSE;
143  return S_OK;
144 }
INTERNETFEATURELIST feature
Definition: misc.c:1689
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static const WCHAR version[]
Definition: asmname.c:66
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59

◆ HTMLDOMImplementation_Invoke()

static HRESULT WINAPI HTMLDOMImplementation_Invoke ( IHTMLDOMImplementation *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 125 of file omnavigator.c.

128 {
130 
131  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid,
132  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
133 }
REFIID riid
Definition: precomp.h:44
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLDOMImplementation_QueryInterface()

static HRESULT WINAPI HTMLDOMImplementation_QueryInterface ( IHTMLDOMImplementation *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 56 of file omnavigator.c.

57 {
59 
60  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
61 
62  if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IHTMLDOMImplementation, riid)) {
63  *ppv = &This->IHTMLDOMImplementation_iface;
64  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
65  return *ppv ? S_OK : E_NOINTERFACE;
66  }else {
67  WARN("Unsupported interface %s\n", debugstr_mshtml_guid(riid));
68  *ppv = NULL;
69  return E_NOINTERFACE;
70  }
71 
72  IUnknown_AddRef((IUnknown*)*ppv);
73  return S_OK;
74 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ HTMLDOMImplementation_Release()

static ULONG WINAPI HTMLDOMImplementation_Release ( IHTMLDOMImplementation *  iface)
static

Definition at line 86 of file omnavigator.c.

87 {
90 
91  TRACE("(%p) ref=%d\n", This, ref);
92 
93  if(!ref) {
94  release_dispex(&This->dispex);
95  heap_free(This);
96  }
97 
98  return ref;
99 }
static HTMLDOMImplementation * impl_from_IHTMLDOMImplementation(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:51
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ HTMLMimeTypesCollection_AddRef()

static ULONG WINAPI HTMLMimeTypesCollection_AddRef ( IHTMLMimeTypesCollection *  iface)
static

Definition at line 544 of file omnavigator.c.

545 {
548 
549  TRACE("(%p) ref=%d\n", This, ref);
550 
551  return ref;
552 }
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ HTMLMimeTypesCollection_get_length()

static HRESULT WINAPI HTMLMimeTypesCollection_get_length ( IHTMLMimeTypesCollection *  iface,
LONG p 
)
static

Definition at line 601 of file omnavigator.c.

602 {
604 
605  TRACE("(%p)->(%p)\n", This, p);
606 
607  /* This is just a stub for compatibility with other browser in IE */
608  *p = 0;
609  return S_OK;
610 }
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLMimeTypesCollection_GetIDsOfNames()

static HRESULT WINAPI HTMLMimeTypesCollection_GetIDsOfNames ( IHTMLMimeTypesCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 584 of file omnavigator.c.

586 {
588  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
589  lcid, rgDispId);
590 }
REFIID riid
Definition: precomp.h:44
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517

◆ HTMLMimeTypesCollection_GetTypeInfo()

static HRESULT WINAPI HTMLMimeTypesCollection_GetTypeInfo ( IHTMLMimeTypesCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 577 of file omnavigator.c.

579 {
581  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
582 }
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517

◆ HTMLMimeTypesCollection_GetTypeInfoCount()

static HRESULT WINAPI HTMLMimeTypesCollection_GetTypeInfoCount ( IHTMLMimeTypesCollection *  iface,
UINT pctinfo 
)
static

Definition at line 571 of file omnavigator.c.

572 {
574  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
575 }
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517

◆ HTMLMimeTypesCollection_Invoke()

static HRESULT WINAPI HTMLMimeTypesCollection_Invoke ( IHTMLMimeTypesCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 592 of file omnavigator.c.

595 {
597  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
598  wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
599 }
REFIID riid
Definition: precomp.h:44
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ HTMLMimeTypesCollection_QueryInterface()

static HRESULT WINAPI HTMLMimeTypesCollection_QueryInterface ( IHTMLMimeTypesCollection *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 522 of file omnavigator.c.

523 {
525 
526  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
527 
528  if(IsEqualGUID(&IID_IUnknown, riid)) {
529  *ppv = &This->IHTMLMimeTypesCollection_iface;
530  }else if(IsEqualGUID(&IID_IHTMLMimeTypesCollection, riid)) {
531  *ppv = &This->IHTMLMimeTypesCollection_iface;
532  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
533  return *ppv ? S_OK : E_NOINTERFACE;
534  }else {
535  WARN("Unsupported interface %s\n", debugstr_mshtml_guid(riid));
536  *ppv = NULL;
537  return E_NOINTERFACE;
538  }
539 
540  IUnknown_AddRef((IUnknown*)*ppv);
541  return S_OK;
542 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ HTMLMimeTypesCollection_Release()

static ULONG WINAPI HTMLMimeTypesCollection_Release ( IHTMLMimeTypesCollection *  iface)
static

Definition at line 554 of file omnavigator.c.

555 {
558 
559  TRACE("(%p) ref=%d\n", This, ref);
560 
561  if(!ref) {
562  if(This->navigator)
563  This->navigator->mime_types = NULL;
564  release_dispex(&This->dispex);
565  heap_free(This);
566  }
567 
568  return ref;
569 }
static HTMLMimeTypesCollection * impl_from_IHTMLMimeTypesCollection(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:517
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ HTMLPluginsCollection_AddRef()

static ULONG WINAPI HTMLPluginsCollection_AddRef ( IHTMLPluginsCollection *  iface)
static

Definition at line 388 of file omnavigator.c.

389 {
392 
393  TRACE("(%p) ref=%d\n", This, ref);
394 
395  return ref;
396 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_get_length()

static HRESULT WINAPI HTMLPluginsCollection_get_length ( IHTMLPluginsCollection *  iface,
LONG p 
)
static

Definition at line 445 of file omnavigator.c.

446 {
448 
449  TRACE("(%p)->(%p)\n", This, p);
450 
451  /* IE always returns 0 here */
452  *p = 0;
453  return S_OK;
454 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361
GLfloat GLfloat p
Definition: glext.h:8902

◆ HTMLPluginsCollection_GetIDsOfNames()

static HRESULT WINAPI HTMLPluginsCollection_GetIDsOfNames ( IHTMLPluginsCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 428 of file omnavigator.c.

430 {
432  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
433  lcid, rgDispId);
434 }
REFIID riid
Definition: precomp.h:44
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_GetTypeInfo()

static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfo ( IHTMLPluginsCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 421 of file omnavigator.c.

423 {
425  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
426 }
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_GetTypeInfoCount()

static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfoCount ( IHTMLPluginsCollection *  iface,
UINT pctinfo 
)
static

Definition at line 415 of file omnavigator.c.

416 {
418  return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
419 }
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_Invoke()

static HRESULT WINAPI HTMLPluginsCollection_Invoke ( IHTMLPluginsCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 436 of file omnavigator.c.

439 {
441  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
442  wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
443 }
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_QueryInterface()

static HRESULT WINAPI HTMLPluginsCollection_QueryInterface ( IHTMLPluginsCollection *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 366 of file omnavigator.c.

367 {
369 
370  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
371 
372  if(IsEqualGUID(&IID_IUnknown, riid)) {
373  *ppv = &This->IHTMLPluginsCollection_iface;
374  }else if(IsEqualGUID(&IID_IHTMLPluginsCollection, riid)) {
375  *ppv = &This->IHTMLPluginsCollection_iface;
376  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
377  return *ppv ? S_OK : E_NOINTERFACE;
378  }else {
379  *ppv = NULL;
380  WARN("Unsupported interface %s\n", debugstr_mshtml_guid(riid));
381  return E_NOINTERFACE;
382  }
383 
384  IUnknown_AddRef((IUnknown*)*ppv);
385  return S_OK;
386 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_refresh()

static HRESULT WINAPI HTMLPluginsCollection_refresh ( IHTMLPluginsCollection *  iface,
VARIANT_BOOL  reload 
)
static

Definition at line 456 of file omnavigator.c.

457 {
459 
460  TRACE("(%p)->(%x)\n", This, reload);
461 
462  /* Nothing to do here. */
463  return S_OK;
464 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361

◆ HTMLPluginsCollection_Release()

static ULONG WINAPI HTMLPluginsCollection_Release ( IHTMLPluginsCollection *  iface)
static

Definition at line 398 of file omnavigator.c.

399 {
402 
403  TRACE("(%p) ref=%d\n", This, ref);
404 
405  if(!ref) {
406  if(This->navigator)
407  This->navigator->plugins = NULL;
408  release_dispex(&This->dispex);
409  heap_free(This);
410  }
411 
412  return ref;
413 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
static HTMLPluginsCollection * impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:361
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ impl_from_IHTMLDOMImplementation()

static HTMLDOMImplementation* impl_from_IHTMLDOMImplementation ( IHTMLDOMImplementation *  iface)
inlinestatic

Definition at line 51 of file omnavigator.c.

52 {
53  return CONTAINING_RECORD(iface, HTMLDOMImplementation, IHTMLDOMImplementation_iface);
54 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLDOMImplementation_AddRef(), HTMLDOMImplementation_GetIDsOfNames(), HTMLDOMImplementation_GetTypeInfo(), HTMLDOMImplementation_GetTypeInfoCount(), HTMLDOMImplementation_hasFeature(), HTMLDOMImplementation_Invoke(), HTMLDOMImplementation_QueryInterface(), and HTMLDOMImplementation_Release().

◆ impl_from_IHTMLMimeTypesCollection()

static HTMLMimeTypesCollection* impl_from_IHTMLMimeTypesCollection ( IHTMLMimeTypesCollection *  iface)
inlinestatic

Definition at line 517 of file omnavigator.c.

518 {
519  return CONTAINING_RECORD(iface, HTMLMimeTypesCollection, IHTMLMimeTypesCollection_iface);
520 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLMimeTypesCollection_AddRef(), HTMLMimeTypesCollection_get_length(), HTMLMimeTypesCollection_GetIDsOfNames(), HTMLMimeTypesCollection_GetTypeInfo(), HTMLMimeTypesCollection_GetTypeInfoCount(), HTMLMimeTypesCollection_Invoke(), HTMLMimeTypesCollection_QueryInterface(), and HTMLMimeTypesCollection_Release().

◆ impl_from_IHTMLPluginsCollection()

static HTMLPluginsCollection* impl_from_IHTMLPluginsCollection ( IHTMLPluginsCollection *  iface)
inlinestatic

Definition at line 361 of file omnavigator.c.

362 {
363  return CONTAINING_RECORD(iface, HTMLPluginsCollection, IHTMLPluginsCollection_iface);
364 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by HTMLPluginsCollection_AddRef(), HTMLPluginsCollection_get_length(), HTMLPluginsCollection_GetIDsOfNames(), HTMLPluginsCollection_GetTypeInfo(), HTMLPluginsCollection_GetTypeInfoCount(), HTMLPluginsCollection_Invoke(), HTMLPluginsCollection_QueryInterface(), HTMLPluginsCollection_refresh(), and HTMLPluginsCollection_Release().

◆ impl_from_IOmHistory()

static OmHistory* impl_from_IOmHistory ( IOmHistory *  iface)
inlinestatic

Definition at line 186 of file omnavigator.c.

187 {
188  return CONTAINING_RECORD(iface, OmHistory, IOmHistory_iface);
189 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by OmHistory_AddRef(), OmHistory_back(), OmHistory_forward(), OmHistory_get_length(), OmHistory_GetIDsOfNames(), OmHistory_GetTypeInfo(), OmHistory_GetTypeInfoCount(), OmHistory_go(), OmHistory_Invoke(), OmHistory_QueryInterface(), and OmHistory_Release().

◆ impl_from_IOmNavigator()

◆ OmHistory_AddRef()

static ULONG WINAPI OmHistory_AddRef ( IOmHistory *  iface)
static

Definition at line 213 of file omnavigator.c.

214 {
217 
218  TRACE("(%p) ref=%d\n", This, ref);
219 
220  return ref;
221 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ OmHistory_back()

static HRESULT WINAPI OmHistory_back ( IOmHistory *  iface,
VARIANT pvargdistance 
)
static

Definition at line 287 of file omnavigator.c.

288 {
290  FIXME("(%p)->(%s)\n", This, debugstr_variant(pvargdistance));
291  return E_NOTIMPL;
292 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OmHistory_forward()

static HRESULT WINAPI OmHistory_forward ( IOmHistory *  iface,
VARIANT pvargdistance 
)
static

Definition at line 294 of file omnavigator.c.

295 {
297  FIXME("(%p)->(%s)\n", This, debugstr_variant(pvargdistance));
298  return E_NOTIMPL;
299 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OmHistory_get_length()

static HRESULT WINAPI OmHistory_get_length ( IOmHistory *  iface,
short p 
)
static

Definition at line 271 of file omnavigator.c.

272 {
274 
275  TRACE("(%p)->(%p)\n", This, p);
276 
277  if(!This->window || !This->window->base.outer_window->doc_obj
278  || !This->window->base.outer_window->doc_obj->travel_log) {
279  *p = 0;
280  }else {
281  *p = ITravelLog_CountEntries(This->window->base.outer_window->doc_obj->travel_log,
282  This->window->base.outer_window->doc_obj->browser_service);
283  }
284  return S_OK;
285 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmHistory_GetIDsOfNames()

static HRESULT WINAPI OmHistory_GetIDsOfNames ( IOmHistory *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 253 of file omnavigator.c.

255 {
257 
258  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
259  lcid, rgDispId);
260 }
REFIID riid
Definition: precomp.h:44
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186

◆ OmHistory_GetTypeInfo()

static HRESULT WINAPI OmHistory_GetTypeInfo ( IOmHistory *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 245 of file omnavigator.c.

247 {
249 
250  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
251 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186

◆ OmHistory_GetTypeInfoCount()

static HRESULT WINAPI OmHistory_GetTypeInfoCount ( IOmHistory *  iface,
UINT pctinfo 
)
static

Definition at line 238 of file omnavigator.c.

239 {
241  FIXME("(%p)->(%p)\n", This, pctinfo);
242  return E_NOTIMPL;
243 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OmHistory_go()

static HRESULT WINAPI OmHistory_go ( IOmHistory *  iface,
VARIANT pvargdistance 
)
static

Definition at line 301 of file omnavigator.c.

302 {
304  FIXME("(%p)->(%s)\n", This, debugstr_variant(pvargdistance));
305  return E_NOTIMPL;
306 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ OmHistory_Invoke()

static HRESULT WINAPI OmHistory_Invoke ( IOmHistory *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 262 of file omnavigator.c.

264 {
266 
267  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
268  pDispParams, pVarResult, pExcepInfo, puArgErr);
269 }
REFIID riid
Definition: precomp.h:44
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519

◆ OmHistory_QueryInterface()

static HRESULT WINAPI OmHistory_QueryInterface ( IOmHistory *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 191 of file omnavigator.c.

192 {
194 
195  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
196 
197  if(IsEqualGUID(&IID_IUnknown, riid)) {
198  *ppv = &This->IOmHistory_iface;
199  }else if(IsEqualGUID(&IID_IOmHistory, riid)) {
200  *ppv = &This->IOmHistory_iface;
201  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
202  return *ppv ? S_OK : E_NOINTERFACE;
203  }else {
204  WARN("Unsupported interface %s\n", debugstr_mshtml_guid(riid));
205  *ppv = NULL;
206  return E_NOINTERFACE;
207  }
208 
209  IUnknown_AddRef((IUnknown*)*ppv);
210  return S_OK;
211 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ OmHistory_Release()

static ULONG WINAPI OmHistory_Release ( IOmHistory *  iface)
static

Definition at line 223 of file omnavigator.c.

224 {
227 
228  TRACE("(%p) ref=%d\n", This, ref);
229 
230  if(!ref) {
231  release_dispex(&This->dispex);
232  heap_free(This);
233  }
234 
235  return ref;
236 }
static OmHistory * impl_from_IOmHistory(IOmHistory *iface)
Definition: omnavigator.c:186
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ OmNavigator_AddRef()

static ULONG WINAPI OmNavigator_AddRef ( IOmNavigator *  iface)
static

Definition at line 680 of file omnavigator.c.

681 {
684 
685  TRACE("(%p) ref=%d\n", This, ref);
686 
687  return ref;
688 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_Create()

IOmNavigator* OmNavigator_Create ( void  )

Definition at line 1079 of file omnavigator.c.

1080 {
1081  OmNavigator *ret;
1082 
1083  ret = heap_alloc_zero(sizeof(*ret));
1084  if(!ret)
1085  return NULL;
1086 
1087  ret->IOmNavigator_iface.lpVtbl = &OmNavigatorVtbl;
1088  ret->ref = 1;
1089 
1090  init_dispex(&ret->dispex, (IUnknown*)&ret->IOmNavigator_iface, &OmNavigator_dispex);
1091 
1092  return &ret->IOmNavigator_iface;
1093 }
static const IOmNavigatorVtbl OmNavigatorVtbl
Definition: omnavigator.c:1038
smooth NULL
Definition: ftsmooth.c:416
int ret
static dispex_static_data_t OmNavigator_dispex
Definition: omnavigator.c:1072
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 HTMLWindow2_get_navigator().

◆ OmNavigator_get_appCodeName()

static HRESULT WINAPI OmNavigator_get_appCodeName ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 744 of file omnavigator.c.

745 {
747 
748  static const WCHAR mozillaW[] = {'M','o','z','i','l','l','a',0};
749 
750  TRACE("(%p)->(%p)\n", This, p);
751 
752  *p = SysAllocString(mozillaW);
753  return S_OK;
754 }
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_appMinorVersion()

static HRESULT WINAPI OmNavigator_get_appMinorVersion ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 1001 of file omnavigator.c.

1002 {
1004 
1005  static const WCHAR zeroW[] = {'0',0};
1006 
1007  TRACE("(%p)->(%p)\n", This, p);
1008 
1009  /* NOTE: MSIE returns "0" or values like ";SP2;". Returning "0" should be enough. */
1010  *p = SysAllocString(zeroW);
1011  return S_OK;
1012 }
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_appName()

static HRESULT WINAPI OmNavigator_get_appName ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 756 of file omnavigator.c.

757 {
759 
760  static const WCHAR app_nameW[] =
761  {'M','i','c','r','o','s','o','f','t',' ',
762  'I','n','t','e','r','n','e','t',' ',
763  'E','x','p','l','o','r','e','r',0};
764 
765  TRACE("(%p)->(%p)\n", This, p);
766 
767  *p = SysAllocString(app_nameW);
768  if(!*p)
769  return E_OUTOFMEMORY;
770 
771  return S_OK;
772 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_appVersion()

static HRESULT WINAPI OmNavigator_get_appVersion ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 774 of file omnavigator.c.

775 {
777 
778  char user_agent[512];
779  DWORD size;
780  HRESULT hres;
781 
782  TRACE("(%p)->(%p)\n", This, p);
783 
784  size = sizeof(user_agent);
786  if(FAILED(hres))
787  return hres;
788 
789  if(strncmp(user_agent, "Mozilla/", 8)) {
790  FIXME("Unsupported user agent\n");
791  return E_FAIL;
792  }
793 
794  size = MultiByteToWideChar(CP_ACP, 0, user_agent+8, -1, NULL, 0);
795  *p = SysAllocStringLen(NULL, size-1);
796  if(!*p)
797  return E_OUTOFMEMORY;
798 
800  return S_OK;
801 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:342
#define CP_ACP
Definition: compat.h:99
#define E_FAIL
Definition: ddrawi.h:102
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static LPWSTR user_agent
Definition: session.c:520
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
Definition: utclib.c:534
unsigned long DWORD
Definition: ntddk_ex.h:95
#define S_OK
Definition: intsafe.h:59
#define MultiByteToWideChar
Definition: compat.h:100
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPSTR pcszUAOut, DWORD *cbSize)
Definition: session.c:725

◆ OmNavigator_get_browserLanguage()

static HRESULT WINAPI OmNavigator_get_browserLanguage ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 967 of file omnavigator.c.

968 {
970 
971  TRACE("(%p)->(%p)\n", This, p);
972 
974 }
LANGID WINAPI GetUserDefaultUILanguage(void)
Definition: lang.c:806
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_language_string(LCID lcid, BSTR *p)
Definition: omnavigator.c:932
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_connectionSpeed()

static HRESULT WINAPI OmNavigator_get_connectionSpeed ( IOmNavigator *  iface,
LONG p 
)
static

Definition at line 1014 of file omnavigator.c.

1015 {
1017  FIXME("(%p)->(%p)\n", This, p);
1018  return E_NOTIMPL;
1019 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_cookieEnabled()

static HRESULT WINAPI OmNavigator_get_cookieEnabled ( IOmNavigator *  iface,
VARIANT_BOOL p 
)
static

Definition at line 883 of file omnavigator.c.

884 {
886 
887  WARN("(%p)->(%p) semi-stub\n", This, p);
888 
889  *p = VARIANT_TRUE;
890  return S_OK;
891 }
#define WARN(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_cpuClass()

static HRESULT WINAPI OmNavigator_get_cpuClass ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 915 of file omnavigator.c.

916 {
918 
919  static const WCHAR cpu_classW[] =
920 #ifdef _WIN64
921  {'x','6','4',0};
922 #else
923  {'x','8','6',0};
924 #endif
925 
926  TRACE("(%p)->(%p)\n", This, p);
927 
928  *p = SysAllocString(cpu_classW);
929  return *p ? S_OK : E_OUTOFMEMORY;
930 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_mimeTypes()

static HRESULT WINAPI OmNavigator_get_mimeTypes ( IOmNavigator *  iface,
IHTMLMimeTypesCollection **  p 
)
static

Definition at line 843 of file omnavigator.c.

844 {
846 
847  TRACE("(%p)->(%p)\n", This, p);
848 
849  if(!This->mime_types) {
850  HRESULT hres;
851 
852  hres = create_mime_types_collection(This, &This->mime_types);
853  if(FAILED(hres))
854  return hres;
855  }else {
856  IHTMLMimeTypesCollection_AddRef(&This->mime_types->IHTMLMimeTypesCollection_iface);
857  }
858 
859  *p = &This->mime_types->IHTMLMimeTypesCollection_iface;
860  return S_OK;
861 }
static HRESULT create_mime_types_collection(OmNavigator *navigator, HTMLMimeTypesCollection **ret)
Definition: omnavigator.c:634
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_onLine()

static HRESULT WINAPI OmNavigator_get_onLine ( IOmNavigator *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1021 of file omnavigator.c.

1022 {
1024 
1025  WARN("(%p)->(%p) semi-stub, returning true\n", This, p);
1026 
1027  *p = VARIANT_TRUE;
1028  return S_OK;
1029 }
#define WARN(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_opsProfile()

static HRESULT WINAPI OmNavigator_get_opsProfile ( IOmNavigator *  iface,
IHTMLOpsProfile **  p 
)
static

Definition at line 893 of file omnavigator.c.

894 {
896  FIXME("(%p)->(%p)\n", This, p);
897  return E_NOTIMPL;
898 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_platform()

static HRESULT WINAPI OmNavigator_get_platform ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 985 of file omnavigator.c.

986 {
988 
989 #ifdef _WIN64
990  static const WCHAR platformW[] = {'W','i','n','6','4',0};
991 #else
992  static const WCHAR platformW[] = {'W','i','n','3','2',0};
993 #endif
994 
995  TRACE("(%p)->(%p)\n", This, p);
996 
997  *p = SysAllocString(platformW);
998  return S_OK;
999 }
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_plugins()

static HRESULT WINAPI OmNavigator_get_plugins ( IOmNavigator *  iface,
IHTMLPluginsCollection **  p 
)
static

Definition at line 863 of file omnavigator.c.

864 {
866 
867  TRACE("(%p)->(%p)\n", This, p);
868 
869  if(!This->plugins) {
870  HRESULT hres;
871 
872  hres = create_plugins_collection(This, &This->plugins);
873  if(FAILED(hres))
874  return hres;
875  }else {
876  IHTMLPluginsCollection_AddRef(&This->plugins->IHTMLPluginsCollection_iface);
877  }
878 
879  *p = &This->plugins->IHTMLPluginsCollection_iface;
880  return S_OK;
881 }
static HRESULT create_plugins_collection(OmNavigator *navigator, HTMLPluginsCollection **ret)
Definition: omnavigator.c:489
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_systemLanguage()

static HRESULT WINAPI OmNavigator_get_systemLanguage ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 958 of file omnavigator.c.

959 {
961 
962  TRACE("(%p)->(%p)\n", This, p);
963 
965 }
#define TRACE(s)
Definition: solgame.cpp:4
#define LOCALE_SYSTEM_DEFAULT
static HRESULT get_language_string(LCID lcid, BSTR *p)
Definition: omnavigator.c:932
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_userAgent()

static HRESULT WINAPI OmNavigator_get_userAgent ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 803 of file omnavigator.c.

804 {
806  char user_agent[512];
807  DWORD size;
808  HRESULT hres;
809 
810  TRACE("(%p)->(%p)\n", This, p);
811 
812  size = sizeof(user_agent);
814  if(FAILED(hres))
815  return hres;
816 
818  *p = SysAllocStringLen(NULL, size-1);
819  if(!*p)
820  return E_OUTOFMEMORY;
821 
823  return S_OK;
824 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:342
#define CP_ACP
Definition: compat.h:99
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static LPWSTR user_agent
Definition: session.c:520
unsigned long DWORD
Definition: ntddk_ex.h:95
#define S_OK
Definition: intsafe.h:59
#define MultiByteToWideChar
Definition: compat.h:100
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPSTR pcszUAOut, DWORD *cbSize)
Definition: session.c:725

◆ OmNavigator_get_userLanguage()

static HRESULT WINAPI OmNavigator_get_userLanguage ( IOmNavigator *  iface,
BSTR p 
)
static

Definition at line 976 of file omnavigator.c.

977 {
979 
980  TRACE("(%p)->(%p)\n", This, p);
981 
983 }
#define LOCALE_USER_DEFAULT
#define TRACE(s)
Definition: solgame.cpp:4
static HRESULT get_language_string(LCID lcid, BSTR *p)
Definition: omnavigator.c:932
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_get_userProfile()

static HRESULT WINAPI OmNavigator_get_userProfile ( IOmNavigator *  iface,
IHTMLOpsProfile **  p 
)
static

Definition at line 1031 of file omnavigator.c.

1032 {
1034  FIXME("(%p)->(%p)\n", This, p);
1035  return E_NOTIMPL;
1036 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
GLfloat GLfloat p
Definition: glext.h:8902

◆ OmNavigator_GetIDsOfNames()

static HRESULT WINAPI OmNavigator_GetIDsOfNames ( IOmNavigator *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 724 of file omnavigator.c.

727 {
729 
730  return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
731  lcid, rgDispId);
732 }
REFIID riid
Definition: precomp.h:44
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_GetTypeInfo()

static HRESULT WINAPI OmNavigator_GetTypeInfo ( IOmNavigator *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 716 of file omnavigator.c.

718 {
720 
721  return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
722 }
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_GetTypeInfoCount()

static HRESULT WINAPI OmNavigator_GetTypeInfoCount ( IOmNavigator *  iface,
UINT pctinfo 
)
static

Definition at line 709 of file omnavigator.c.

710 {
712  FIXME("(%p)->(%p)\n", This, pctinfo);
713  return E_NOTIMPL;
714 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_Invoke()

static HRESULT WINAPI OmNavigator_Invoke ( IOmNavigator *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 734 of file omnavigator.c.

737 {
739 
740  return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
741  pDispParams, pVarResult, pExcepInfo, puArgErr);
742 }
REFIID riid
Definition: precomp.h:44
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_javaEnabled()

static HRESULT WINAPI OmNavigator_javaEnabled ( IOmNavigator *  iface,
VARIANT_BOOL enabled 
)
static

Definition at line 826 of file omnavigator.c.

827 {
829 
830  FIXME("(%p)->(%p) semi-stub\n", This, enabled);
831 
832  *enabled = VARIANT_TRUE;
833  return S_OK;
834 }
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_QueryInterface()

static HRESULT WINAPI OmNavigator_QueryInterface ( IOmNavigator *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 658 of file omnavigator.c.

659 {
661 
662  TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
663 
664  if(IsEqualGUID(&IID_IUnknown, riid)) {
665  *ppv = &This->IOmNavigator_iface;
666  }else if(IsEqualGUID(&IID_IOmNavigator, riid)) {
667  *ppv = &This->IOmNavigator_iface;
668  }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
669  return *ppv ? S_OK : E_NOINTERFACE;
670  }else {
671  WARN("Unsupported interface %s\n", debugstr_mshtml_guid(riid));
672  *ppv = NULL;
673  return E_NOINTERFACE;
674  }
675 
676  IUnknown_AddRef((IUnknown*)*ppv);
677  return S_OK;
678 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:535
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_Release()

static ULONG WINAPI OmNavigator_Release ( IOmNavigator *  iface)
static

Definition at line 690 of file omnavigator.c.

691 {
694 
695  TRACE("(%p) ref=%d\n", This, ref);
696 
697  if(!ref) {
698  if(This->plugins)
699  This->plugins->navigator = NULL;
700  if(This->mime_types)
701  This->mime_types->navigator = NULL;
702  release_dispex(&This->dispex);
703  heap_free(This);
704  }
705 
706  return ref;
707 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653
void release_dispex(DispatchEx *This)
Definition: dispex.c:1706
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ OmNavigator_taintEnabled()

static HRESULT WINAPI OmNavigator_taintEnabled ( IOmNavigator *  iface,
VARIANT_BOOL enabled 
)
static

Definition at line 836 of file omnavigator.c.

837 {
839  FIXME("(%p)->(%p)\n", This, enabled);
840  return E_NOTIMPL;
841 }
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

◆ OmNavigator_toString()

static HRESULT WINAPI OmNavigator_toString ( IOmNavigator *  iface,
BSTR String 
)
static

Definition at line 900 of file omnavigator.c.

901 {
903 
904  static const WCHAR objectW[] = {'[','o','b','j','e','c','t',']',0};
905 
906  TRACE("(%p)->(%p)\n", This, String);
907 
908  if(!String)
909  return E_INVALIDARG;
910 
912  return *String ? S_OK : E_OUTOFMEMORY;
913 }
static WCHAR String[]
Definition: stringtable.c:55
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_INVALIDARG
Definition: ddrawi.h:101
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static const WCHAR objectW[]
Definition: engine.c:37
static OmNavigator * impl_from_IOmNavigator(IOmNavigator *iface)
Definition: omnavigator.c:653

Variable Documentation

◆ HTMLDOMImplementation_dispex

dispex_static_data_t HTMLDOMImplementation_dispex
static
Initial value:
= {
IHTMLDOMImplementation_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLDOMImplementation_iface_tids[]
Definition: omnavigator.c:157

Definition at line 161 of file omnavigator.c.

Referenced by create_dom_implementation().

◆ HTMLDOMImplementation_iface_tids

const tid_t HTMLDOMImplementation_iface_tids[]
static
Initial value:
= {
IHTMLDOMImplementation_tid,
0
}

Definition at line 157 of file omnavigator.c.

◆ HTMLDOMImplementationVtbl

const IHTMLDOMImplementationVtbl HTMLDOMImplementationVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLDOMImplementation_GetTypeInfoCount(IHTMLDOMImplementation *iface, UINT *pctinfo)
Definition: omnavigator.c:101
static ULONG WINAPI HTMLDOMImplementation_Release(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:86
static HRESULT WINAPI HTMLDOMImplementation_GetIDsOfNames(IHTMLDOMImplementation *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: omnavigator.c:116
static HRESULT WINAPI HTMLDOMImplementation_GetTypeInfo(IHTMLDOMImplementation *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: omnavigator.c:108
static ULONG WINAPI HTMLDOMImplementation_AddRef(IHTMLDOMImplementation *iface)
Definition: omnavigator.c:76
static HRESULT WINAPI HTMLDOMImplementation_hasFeature(IHTMLDOMImplementation *iface, BSTR feature, VARIANT version, VARIANT_BOOL *pfHasFeature)
Definition: omnavigator.c:135
static HRESULT WINAPI HTMLDOMImplementation_QueryInterface(IHTMLDOMImplementation *iface, REFIID riid, void **ppv)
Definition: omnavigator.c:56
static HRESULT WINAPI HTMLDOMImplementation_Invoke(IHTMLDOMImplementation *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: omnavigator.c:125

Definition at line 146 of file omnavigator.c.

Referenced by create_dom_implementation().

◆ HTMLMimeTypesCollection_dispex

dispex_static_data_t HTMLMimeTypesCollection_dispex
static
Initial value:
= {
IHTMLMimeTypesCollection_tid,
}
static const tid_t HTMLMimeTypesCollection_iface_tids[]
Definition: omnavigator.c:623
smooth NULL
Definition: ftsmooth.c:416

Definition at line 627 of file omnavigator.c.

Referenced by create_mime_types_collection().

◆ HTMLMimeTypesCollection_iface_tids

const tid_t HTMLMimeTypesCollection_iface_tids[]
static
Initial value:
= {
IHTMLMimeTypesCollection_tid,
0
}

Definition at line 623 of file omnavigator.c.

◆ HTMLMimeTypesCollectionVtbl

const IHTMLMimeTypesCollectionVtbl HTMLMimeTypesCollectionVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLMimeTypesCollection_GetTypeInfoCount(IHTMLMimeTypesCollection *iface, UINT *pctinfo)
Definition: omnavigator.c:571
static HRESULT WINAPI HTMLMimeTypesCollection_get_length(IHTMLMimeTypesCollection *iface, LONG *p)
Definition: omnavigator.c:601
static ULONG WINAPI HTMLMimeTypesCollection_AddRef(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:544
static ULONG WINAPI HTMLMimeTypesCollection_Release(IHTMLMimeTypesCollection *iface)
Definition: omnavigator.c:554
static HRESULT WINAPI HTMLMimeTypesCollection_GetTypeInfo(IHTMLMimeTypesCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: omnavigator.c:577
static HRESULT WINAPI HTMLMimeTypesCollection_GetIDsOfNames(IHTMLMimeTypesCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: omnavigator.c:584
static HRESULT WINAPI HTMLMimeTypesCollection_QueryInterface(IHTMLMimeTypesCollection *iface, REFIID riid, void **ppv)
Definition: omnavigator.c:522
static HRESULT WINAPI HTMLMimeTypesCollection_Invoke(IHTMLMimeTypesCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: omnavigator.c:592

Definition at line 612 of file omnavigator.c.

Referenced by create_mime_types_collection().

◆ HTMLPluginsCollection_dispex

dispex_static_data_t HTMLPluginsCollection_dispex
static
Initial value:
= {
DispCPlugins_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t HTMLPluginsCollection_iface_tids[]
Definition: omnavigator.c:478

Definition at line 482 of file omnavigator.c.

Referenced by create_plugins_collection().

◆ HTMLPluginsCollection_iface_tids

const tid_t HTMLPluginsCollection_iface_tids[]
static
Initial value:
= {
IHTMLPluginsCollection_tid,
0
}

Definition at line 478 of file omnavigator.c.

◆ HTMLPluginsCollectionVtbl

const IHTMLPluginsCollectionVtbl HTMLPluginsCollectionVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLPluginsCollection_GetIDsOfNames(IHTMLPluginsCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: omnavigator.c:428
static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfoCount(IHTMLPluginsCollection *iface, UINT *pctinfo)
Definition: omnavigator.c:415
static HRESULT WINAPI HTMLPluginsCollection_refresh(IHTMLPluginsCollection *iface, VARIANT_BOOL reload)
Definition: omnavigator.c:456
static HRESULT WINAPI HTMLPluginsCollection_get_length(IHTMLPluginsCollection *iface, LONG *p)
Definition: omnavigator.c:445
static HRESULT WINAPI HTMLPluginsCollection_Invoke(IHTMLPluginsCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: omnavigator.c:436
static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfo(IHTMLPluginsCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: omnavigator.c:421
static HRESULT WINAPI HTMLPluginsCollection_QueryInterface(IHTMLPluginsCollection *iface, REFIID riid, void **ppv)
Definition: omnavigator.c:366
static ULONG WINAPI HTMLPluginsCollection_AddRef(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:388
static ULONG WINAPI HTMLPluginsCollection_Release(IHTMLPluginsCollection *iface)
Definition: omnavigator.c:398

Definition at line 466 of file omnavigator.c.

Referenced by create_plugins_collection().

◆ OmHistory_dispex

dispex_static_data_t OmHistory_dispex
static
Initial value:
= {
DispHTMLHistory_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t OmHistory_iface_tids[]
Definition: omnavigator.c:322

Definition at line 326 of file omnavigator.c.

Referenced by create_history().

◆ OmHistory_iface_tids

const tid_t OmHistory_iface_tids[]
static
Initial value:
= {
IOmHistory_tid,
0
}

Definition at line 322 of file omnavigator.c.

◆ OmHistoryVtbl

const IOmHistoryVtbl OmHistoryVtbl
static
Initial value:
= {
}
static HRESULT WINAPI OmHistory_GetTypeInfo(IOmHistory *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: omnavigator.c:245
static HRESULT WINAPI OmHistory_GetTypeInfoCount(IOmHistory *iface, UINT *pctinfo)
Definition: omnavigator.c:238
static HRESULT WINAPI OmHistory_get_length(IOmHistory *iface, short *p)
Definition: omnavigator.c:271
static HRESULT WINAPI OmHistory_QueryInterface(IOmHistory *iface, REFIID riid, void **ppv)
Definition: omnavigator.c:191
static HRESULT WINAPI OmHistory_Invoke(IOmHistory *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: omnavigator.c:262
static HRESULT WINAPI OmHistory_GetIDsOfNames(IOmHistory *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: omnavigator.c:253
static HRESULT WINAPI OmHistory_go(IOmHistory *iface, VARIANT *pvargdistance)
Definition: omnavigator.c:301
static HRESULT WINAPI OmHistory_forward(IOmHistory *iface, VARIANT *pvargdistance)
Definition: omnavigator.c:294
static ULONG WINAPI OmHistory_AddRef(IOmHistory *iface)
Definition: omnavigator.c:213
static HRESULT WINAPI OmHistory_back(IOmHistory *iface, VARIANT *pvargdistance)
Definition: omnavigator.c:287
static ULONG WINAPI OmHistory_Release(IOmHistory *iface)
Definition: omnavigator.c:223

Definition at line 308 of file omnavigator.c.

Referenced by create_history().

◆ OmNavigator_dispex

dispex_static_data_t OmNavigator_dispex
static
Initial value:
= {
DispHTMLNavigator_tid,
}
smooth NULL
Definition: ftsmooth.c:416
static const tid_t OmNavigator_iface_tids[]
Definition: omnavigator.c:1068

Definition at line 1072 of file omnavigator.c.

Referenced by OmNavigator_Create().

◆ OmNavigator_iface_tids

const tid_t OmNavigator_iface_tids[]
static
Initial value:
= {
IOmNavigator_tid,
0
}

Definition at line 1068 of file omnavigator.c.

◆ OmNavigatorVtbl

const IOmNavigatorVtbl OmNavigatorVtbl
static
Initial value:
= {
}
static HRESULT WINAPI OmNavigator_get_connectionSpeed(IOmNavigator *iface, LONG *p)
Definition: omnavigator.c:1014
static HRESULT WINAPI OmNavigator_get_onLine(IOmNavigator *iface, VARIANT_BOOL *p)
Definition: omnavigator.c:1021
static HRESULT WINAPI OmNavigator_get_platform(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:985
static HRESULT WINAPI OmNavigator_get_plugins(IOmNavigator *iface, IHTMLPluginsCollection **p)
Definition: omnavigator.c:863
static HRESULT WINAPI OmNavigator_get_mimeTypes(IOmNavigator *iface, IHTMLMimeTypesCollection **p)
Definition: omnavigator.c:843
static HRESULT WINAPI OmNavigator_get_appName(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:756
static HRESULT WINAPI OmNavigator_GetTypeInfo(IOmNavigator *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: omnavigator.c:716
static HRESULT WINAPI OmNavigator_get_appCodeName(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:744
static HRESULT WINAPI OmNavigator_toString(IOmNavigator *iface, BSTR *String)
Definition: omnavigator.c:900
static HRESULT WINAPI OmNavigator_javaEnabled(IOmNavigator *iface, VARIANT_BOOL *enabled)
Definition: omnavigator.c:826
static HRESULT WINAPI OmNavigator_Invoke(IOmNavigator *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: omnavigator.c:734
static HRESULT WINAPI OmNavigator_get_appMinorVersion(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:1001
static HRESULT WINAPI OmNavigator_get_userProfile(IOmNavigator *iface, IHTMLOpsProfile **p)
Definition: omnavigator.c:1031
static HRESULT WINAPI OmNavigator_get_cookieEnabled(IOmNavigator *iface, VARIANT_BOOL *p)
Definition: omnavigator.c:883
static HRESULT WINAPI OmNavigator_get_appVersion(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:774
static HRESULT WINAPI OmNavigator_GetTypeInfoCount(IOmNavigator *iface, UINT *pctinfo)
Definition: omnavigator.c:709
static ULONG WINAPI OmNavigator_Release(IOmNavigator *iface)
Definition: omnavigator.c:690
static ULONG WINAPI OmNavigator_AddRef(IOmNavigator *iface)
Definition: omnavigator.c:680
static HRESULT WINAPI OmNavigator_get_browserLanguage(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:967
static HRESULT WINAPI OmNavigator_get_cpuClass(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:915
static HRESULT WINAPI OmNavigator_QueryInterface(IOmNavigator *iface, REFIID riid, void **ppv)
Definition: omnavigator.c:658
static HRESULT WINAPI OmNavigator_get_opsProfile(IOmNavigator *iface, IHTMLOpsProfile **p)
Definition: omnavigator.c:893
static HRESULT WINAPI OmNavigator_get_userLanguage(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:976
static HRESULT WINAPI OmNavigator_GetIDsOfNames(IOmNavigator *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: omnavigator.c:724
static HRESULT WINAPI OmNavigator_get_userAgent(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:803
static HRESULT WINAPI OmNavigator_taintEnabled(IOmNavigator *iface, VARIANT_BOOL *enabled)
Definition: omnavigator.c:836
static HRESULT WINAPI OmNavigator_get_systemLanguage(IOmNavigator *iface, BSTR *p)
Definition: omnavigator.c:958

Definition at line 1038 of file omnavigator.c.

Referenced by OmNavigator_Create().