ReactOS 0.4.15-dev-7924-g5949c20
urlhist.c File Reference
#include "ieframe.h"
#include "urlhist.h"
#include "wine/debug.h"
Include dependency graph for urlhist.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ieframe)
 
static HRESULT WINAPI UrlHistoryStg_QueryInterface (IUrlHistoryStg2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI UrlHistoryStg_AddRef (IUrlHistoryStg2 *iface)
 
static ULONG WINAPI UrlHistoryStg_Release (IUrlHistoryStg2 *iface)
 
static HRESULT WINAPI UrlHistoryStg_AddUrl (IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, LPCOLESTR pocsTitle, DWORD dwFlags)
 
static HRESULT WINAPI UrlHistoryStg_DeleteUrl (IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, DWORD dwFlags)
 
static HRESULT WINAPI UrlHistoryStg_QueryUrl (IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, DWORD dwFlags, LPSTATURL lpSTATURL)
 
static HRESULT WINAPI UrlHistoryStg_BindToObject (IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, REFIID riid, void **ppv)
 
static HRESULT WINAPI UrlHistoryStg_EnumUrls (IUrlHistoryStg2 *iface, IEnumSTATURL **ppEnum)
 
static HRESULT WINAPI UrlHistoryStg_AddUrlAndNotify (IUrlHistoryStg2 *iface, LPCOLESTR pocsUrl, LPCOLESTR pocsTitle, DWORD dwFlags, BOOL fWriteHistory, IOleCommandTarget *poctNotify, IUnknown *punkISFolder)
 
static HRESULT WINAPI UrlHistoryStg_ClearHistory (IUrlHistoryStg2 *iface)
 
HRESULT WINAPI CUrlHistory_Create (IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppv)
 

Variables

static const IUrlHistoryStg2Vtbl UrlHistoryStg2Vtbl
 
static IUrlHistoryStg2 UrlHistoryStg2 = { &UrlHistoryStg2Vtbl }
 

Function Documentation

◆ CUrlHistory_Create()

HRESULT WINAPI CUrlHistory_Create ( IClassFactory iface,
IUnknown pOuter,
REFIID  riid,
void **  ppv 
)

Definition at line 126 of file urlhist.c.

127{
128 if(pOuter)
130
131 return IUrlHistoryStg2_QueryInterface(&UrlHistoryStg2, riid, ppv);
132}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static IUrlHistoryStg2 UrlHistoryStg2
Definition: urlhist.c:124
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662

◆ UrlHistoryStg_AddRef()

static ULONG WINAPI UrlHistoryStg_AddRef ( IUrlHistoryStg2 iface)
static

Definition at line 50 of file urlhist.c.

51{
53 return 2;
54}
static void lock_module(void)
Definition: ieframe.h:335

◆ UrlHistoryStg_AddUrl()

static HRESULT WINAPI UrlHistoryStg_AddUrl ( IUrlHistoryStg2 iface,
LPCOLESTR  lpcsUrl,
LPCOLESTR  pocsTitle,
DWORD  dwFlags 
)
static

Definition at line 62 of file urlhist.c.

64{
65 FIXME("(%s %s %08x)\n", debugstr_w(lpcsUrl), debugstr_w(pocsTitle), dwFlags);
66 return E_NOTIMPL;
67}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
#define debugstr_w
Definition: kernel32.h:32
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176

◆ UrlHistoryStg_AddUrlAndNotify()

static HRESULT WINAPI UrlHistoryStg_AddUrlAndNotify ( IUrlHistoryStg2 iface,
LPCOLESTR  pocsUrl,
LPCOLESTR  pocsTitle,
DWORD  dwFlags,
BOOL  fWriteHistory,
IOleCommandTarget poctNotify,
IUnknown punkISFolder 
)
static

Definition at line 96 of file urlhist.c.

99{
100 FIXME("(%s %s %08x %x %p %p)\n", debugstr_w(pocsUrl), debugstr_w(pocsTitle),
101 dwFlags, fWriteHistory, poctNotify, punkISFolder);
102 return E_NOTIMPL;
103}

◆ UrlHistoryStg_BindToObject()

static HRESULT WINAPI UrlHistoryStg_BindToObject ( IUrlHistoryStg2 iface,
LPCOLESTR  lpcsUrl,
REFIID  riid,
void **  ppv 
)
static

Definition at line 83 of file urlhist.c.

85{
86 FIXME("(%s %s %p)\n", debugstr_w(lpcsUrl), debugstr_guid(riid), ppv);
87 return E_NOTIMPL;
88}
#define debugstr_guid
Definition: kernel32.h:35

◆ UrlHistoryStg_ClearHistory()

static HRESULT WINAPI UrlHistoryStg_ClearHistory ( IUrlHistoryStg2 iface)
static

Definition at line 105 of file urlhist.c.

106{
107 FIXME("()\n");
108 return E_NOTIMPL;
109}

◆ UrlHistoryStg_DeleteUrl()

static HRESULT WINAPI UrlHistoryStg_DeleteUrl ( IUrlHistoryStg2 iface,
LPCOLESTR  lpcsUrl,
DWORD  dwFlags 
)
static

Definition at line 69 of file urlhist.c.

71{
72 FIXME("(%s %08x)\n", debugstr_w(lpcsUrl), dwFlags);
73 return E_NOTIMPL;
74}

◆ UrlHistoryStg_EnumUrls()

static HRESULT WINAPI UrlHistoryStg_EnumUrls ( IUrlHistoryStg2 iface,
IEnumSTATURL **  ppEnum 
)
static

Definition at line 90 of file urlhist.c.

91{
92 FIXME("(%p)\n", ppEnum);
93 return E_NOTIMPL;
94}

◆ UrlHistoryStg_QueryInterface()

static HRESULT WINAPI UrlHistoryStg_QueryInterface ( IUrlHistoryStg2 iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 26 of file urlhist.c.

27{
28 *ppv = NULL;
29
31 TRACE("(IID_IUnknown %p)\n", ppv);
32 *ppv = iface;
33 }else if(IsEqualGUID(&IID_IUrlHistoryStg, riid)) {
34 TRACE("(IID_IUrlHistoryStg %p)\n", ppv);
35 *ppv = iface;
36 }else if(IsEqualGUID(&IID_IUrlHistoryStg2, riid)) {
37 TRACE("(IID_IUrlHistoryStg2 %p)\n", ppv);
38 *ppv = iface;
39 }
40
41 if(*ppv) {
42 IUnknown_AddRef((IUnknown*)*ppv);
43 return S_OK;
44 }
45
46 WARN("(%s %p)\n", debugstr_guid(riid), ppv);
47 return E_NOINTERFACE;
48}
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:112
#define NULL
Definition: types.h:112
#define S_OK
Definition: intsafe.h:52
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ UrlHistoryStg_QueryUrl()

static HRESULT WINAPI UrlHistoryStg_QueryUrl ( IUrlHistoryStg2 iface,
LPCOLESTR  lpcsUrl,
DWORD  dwFlags,
LPSTATURL  lpSTATURL 
)
static

Definition at line 76 of file urlhist.c.

78{
79 FIXME("(%s %08x %p)\n", debugstr_w(lpcsUrl), dwFlags, lpSTATURL);
80 return E_NOTIMPL;
81}

◆ UrlHistoryStg_Release()

static ULONG WINAPI UrlHistoryStg_Release ( IUrlHistoryStg2 iface)
static

Definition at line 56 of file urlhist.c.

57{
59 return 1;
60}
static void unlock_module(void)
Definition: ieframe.h:339

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ieframe  )

Variable Documentation

◆ UrlHistoryStg2

IUrlHistoryStg2 UrlHistoryStg2 = { &UrlHistoryStg2Vtbl }
static

Definition at line 124 of file urlhist.c.

Referenced by CUrlHistory_Create().

◆ UrlHistoryStg2Vtbl

const IUrlHistoryStg2Vtbl UrlHistoryStg2Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI UrlHistoryStg_QueryUrl(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, DWORD dwFlags, LPSTATURL lpSTATURL)
Definition: urlhist.c:76
static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFIID riid, void **ppv)
Definition: urlhist.c:26
static ULONG WINAPI UrlHistoryStg_Release(IUrlHistoryStg2 *iface)
Definition: urlhist.c:56
static HRESULT WINAPI UrlHistoryStg_BindToObject(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, REFIID riid, void **ppv)
Definition: urlhist.c:83
static ULONG WINAPI UrlHistoryStg_AddRef(IUrlHistoryStg2 *iface)
Definition: urlhist.c:50
static HRESULT WINAPI UrlHistoryStg_EnumUrls(IUrlHistoryStg2 *iface, IEnumSTATURL **ppEnum)
Definition: urlhist.c:90
static HRESULT WINAPI UrlHistoryStg_ClearHistory(IUrlHistoryStg2 *iface)
Definition: urlhist.c:105
static HRESULT WINAPI UrlHistoryStg_DeleteUrl(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, DWORD dwFlags)
Definition: urlhist.c:69
static HRESULT WINAPI UrlHistoryStg_AddUrl(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl, LPCOLESTR pocsTitle, DWORD dwFlags)
Definition: urlhist.c:62
static HRESULT WINAPI UrlHistoryStg_AddUrlAndNotify(IUrlHistoryStg2 *iface, LPCOLESTR pocsUrl, LPCOLESTR pocsTitle, DWORD dwFlags, BOOL fWriteHistory, IOleCommandTarget *poctNotify, IUnknown *punkISFolder)
Definition: urlhist.c:96

Definition at line 111 of file urlhist.c.