ReactOS 0.4.16-dev-240-gdb5fa3b
searcher.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "wuapi.h"
#include "wuapi_private.h"
#include "wine/debug.h"
Include dependency graph for searcher.c:

Go to the source code of this file.

Classes

struct  _update_searcher
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct _update_searcher update_searcher
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (wuapi)
 
static update_searcherimpl_from_IUpdateSearcher (IUpdateSearcher *iface)
 
static ULONG WINAPI update_searcher_AddRef (IUpdateSearcher *iface)
 
static ULONG WINAPI update_searcher_Release (IUpdateSearcher *iface)
 
static HRESULT WINAPI update_searcher_QueryInterface (IUpdateSearcher *iface, REFIID riid, void **ppvObject)
 
static HRESULT WINAPI update_searcher_GetTypeInfoCount (IUpdateSearcher *iface, UINT *pctinfo)
 
static HRESULT WINAPI update_searcher_GetTypeInfo (IUpdateSearcher *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI update_searcher_GetIDsOfNames (IUpdateSearcher *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI update_searcher_Invoke (IUpdateSearcher *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI update_searcher_get_CanAutomaticallyUpgradeService (IUpdateSearcher *This, VARIANT_BOOL *retval)
 
static HRESULT WINAPI update_searcher_put_CanAutomaticallyUpgradeService (IUpdateSearcher *This, VARIANT_BOOL value)
 
static HRESULT WINAPI update_searcher_get_ClientApplicationID (IUpdateSearcher *This, BSTR *retval)
 
static HRESULT WINAPI update_searcher_put_ClientApplicationID (IUpdateSearcher *This, BSTR value)
 
static HRESULT WINAPI update_searcher_get_IncludePotentiallySupersededUpdates (IUpdateSearcher *This, VARIANT_BOOL *retval)
 
static HRESULT WINAPI update_searcher_put_IncludePotentiallySupersededUpdates (IUpdateSearcher *This, VARIANT_BOOL value)
 
static HRESULT WINAPI update_searcher_get_ServerSelection (IUpdateSearcher *This, ServerSelection *retval)
 
static HRESULT WINAPI update_searcher_put_ServerSelection (IUpdateSearcher *This, ServerSelection value)
 
static HRESULT WINAPI update_searcher_BeginSearch (IUpdateSearcher *This, BSTR criteria, IUnknown *onCompleted, VARIANT state, ISearchJob **retval)
 
static HRESULT WINAPI update_searcher_EndSearch (IUpdateSearcher *This, ISearchJob *searchJob, ISearchResult **retval)
 
static HRESULT WINAPI update_searcher_EscapeString (IUpdateSearcher *This, BSTR unescaped, BSTR *retval)
 
static HRESULT WINAPI update_searcher_QueryHistory (IUpdateSearcher *This, LONG startIndex, LONG count, IUpdateHistoryEntryCollection **retval)
 
static HRESULT WINAPI update_searcher_Search (IUpdateSearcher *This, BSTR criteria, ISearchResult **retval)
 
static HRESULT WINAPI update_searcher_get_Online (IUpdateSearcher *This, VARIANT_BOOL *retval)
 
static HRESULT WINAPI update_searcher_put_Online (IUpdateSearcher *This, VARIANT_BOOL value)
 
static HRESULT WINAPI update_searcher_GetTotalHistoryCount (IUpdateSearcher *This, LONG *retval)
 
static HRESULT WINAPI update_searcher_get_ServiceID (IUpdateSearcher *This, BSTR *retval)
 
static HRESULT WINAPI update_searcher_put_ServiceID (IUpdateSearcher *This, BSTR value)
 
HRESULT UpdateSearcher_create (LPVOID *ppObj)
 

Variables

static const struct IUpdateSearcherVtbl update_searcher_vtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file searcher.c.

Typedef Documentation

◆ update_searcher

Function Documentation

◆ impl_from_IUpdateSearcher()

static update_searcher * impl_from_IUpdateSearcher ( IUpdateSearcher *  iface)
inlinestatic

Definition at line 42 of file searcher.c.

43{
44 return CONTAINING_RECORD(iface, update_searcher, IUpdateSearcher_iface);
45}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by update_searcher_AddRef(), update_searcher_QueryInterface(), and update_searcher_Release().

◆ update_searcher_AddRef()

static ULONG WINAPI update_searcher_AddRef ( IUpdateSearcher *  iface)
static

Definition at line 47 of file searcher.c.

49{
52}
#define InterlockedIncrement
Definition: armddk.h:53
static update_searcher * impl_from_IUpdateSearcher(IUpdateSearcher *iface)
Definition: searcher.c:42

◆ update_searcher_BeginSearch()

static HRESULT WINAPI update_searcher_BeginSearch ( IUpdateSearcher *  This,
BSTR  criteria,
IUnknown onCompleted,
VARIANT  state,
ISearchJob **  retval 
)
static

Definition at line 200 of file searcher.c.

206{
207 FIXME("\n");
208 return E_NOTIMPL;
209}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ update_searcher_EndSearch()

static HRESULT WINAPI update_searcher_EndSearch ( IUpdateSearcher *  This,
ISearchJob *  searchJob,
ISearchResult **  retval 
)
static

Definition at line 211 of file searcher.c.

215{
216 FIXME("\n");
217 return E_NOTIMPL;
218}

◆ update_searcher_EscapeString()

static HRESULT WINAPI update_searcher_EscapeString ( IUpdateSearcher *  This,
BSTR  unescaped,
BSTR retval 
)
static

Definition at line 220 of file searcher.c.

224{
225 FIXME("\n");
226 return E_NOTIMPL;
227}

◆ update_searcher_get_CanAutomaticallyUpgradeService()

static HRESULT WINAPI update_searcher_get_CanAutomaticallyUpgradeService ( IUpdateSearcher *  This,
VARIANT_BOOL retval 
)
static

Definition at line 136 of file searcher.c.

139{
140 FIXME("\n");
141 return E_NOTIMPL;
142}

◆ update_searcher_get_ClientApplicationID()

static HRESULT WINAPI update_searcher_get_ClientApplicationID ( IUpdateSearcher *  This,
BSTR retval 
)
static

Definition at line 152 of file searcher.c.

155{
156 FIXME("\n");
157 return E_NOTIMPL;
158}

◆ update_searcher_get_IncludePotentiallySupersededUpdates()

static HRESULT WINAPI update_searcher_get_IncludePotentiallySupersededUpdates ( IUpdateSearcher *  This,
VARIANT_BOOL retval 
)
static

Definition at line 168 of file searcher.c.

171{
172 FIXME("\n");
173 return E_NOTIMPL;
174}

◆ update_searcher_get_Online()

static HRESULT WINAPI update_searcher_get_Online ( IUpdateSearcher *  This,
VARIANT_BOOL retval 
)
static

Definition at line 248 of file searcher.c.

251{
252 FIXME("\n");
253 return E_NOTIMPL;
254}

◆ update_searcher_get_ServerSelection()

static HRESULT WINAPI update_searcher_get_ServerSelection ( IUpdateSearcher *  This,
ServerSelection *  retval 
)
static

Definition at line 184 of file searcher.c.

187{
188 FIXME("\n");
189 return E_NOTIMPL;
190}

◆ update_searcher_get_ServiceID()

static HRESULT WINAPI update_searcher_get_ServiceID ( IUpdateSearcher *  This,
BSTR retval 
)
static

Definition at line 272 of file searcher.c.

275{
276 FIXME("\n");
277 return E_NOTIMPL;
278}

◆ update_searcher_GetIDsOfNames()

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

Definition at line 109 of file searcher.c.

116{
117 FIXME("\n");
118 return E_NOTIMPL;
119}

◆ update_searcher_GetTotalHistoryCount()

static HRESULT WINAPI update_searcher_GetTotalHistoryCount ( IUpdateSearcher *  This,
LONG retval 
)
static

Definition at line 264 of file searcher.c.

267{
268 FIXME("\n");
269 return E_NOTIMPL;
270}

◆ update_searcher_GetTypeInfo()

static HRESULT WINAPI update_searcher_GetTypeInfo ( IUpdateSearcher *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 99 of file searcher.c.

104{
105 FIXME("\n");
106 return E_NOTIMPL;
107}

◆ update_searcher_GetTypeInfoCount()

static HRESULT WINAPI update_searcher_GetTypeInfoCount ( IUpdateSearcher *  iface,
UINT pctinfo 
)
static

Definition at line 91 of file searcher.c.

94{
95 FIXME("\n");
96 return E_NOTIMPL;
97}

◆ update_searcher_Invoke()

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

Definition at line 121 of file searcher.c.

131{
132 FIXME("\n");
133 return E_NOTIMPL;
134}

◆ update_searcher_put_CanAutomaticallyUpgradeService()

static HRESULT WINAPI update_searcher_put_CanAutomaticallyUpgradeService ( IUpdateSearcher *  This,
VARIANT_BOOL  value 
)
static

Definition at line 144 of file searcher.c.

147{
148 FIXME("%p, %d\n", This, value);
149 return S_OK;
150}
#define S_OK
Definition: intsafe.h:52
Definition: pdh_main.c:94

◆ update_searcher_put_ClientApplicationID()

static HRESULT WINAPI update_searcher_put_ClientApplicationID ( IUpdateSearcher *  This,
BSTR  value 
)
static

Definition at line 160 of file searcher.c.

163{
164 FIXME("%p, %s\n", This, debugstr_w(value));
165 return E_NOTIMPL;
166}
#define debugstr_w
Definition: kernel32.h:32

◆ update_searcher_put_IncludePotentiallySupersededUpdates()

static HRESULT WINAPI update_searcher_put_IncludePotentiallySupersededUpdates ( IUpdateSearcher *  This,
VARIANT_BOOL  value 
)
static

Definition at line 176 of file searcher.c.

179{
180 FIXME("\n");
181 return E_NOTIMPL;
182}

◆ update_searcher_put_Online()

static HRESULT WINAPI update_searcher_put_Online ( IUpdateSearcher *  This,
VARIANT_BOOL  value 
)
static

Definition at line 256 of file searcher.c.

259{
260 FIXME("\n");
261 return E_NOTIMPL;
262}

◆ update_searcher_put_ServerSelection()

static HRESULT WINAPI update_searcher_put_ServerSelection ( IUpdateSearcher *  This,
ServerSelection  value 
)
static

Definition at line 192 of file searcher.c.

195{
196 FIXME("\n");
197 return E_NOTIMPL;
198}

◆ update_searcher_put_ServiceID()

static HRESULT WINAPI update_searcher_put_ServiceID ( IUpdateSearcher *  This,
BSTR  value 
)
static

Definition at line 280 of file searcher.c.

283{
284 FIXME("\n");
285 return E_NOTIMPL;
286}

◆ update_searcher_QueryHistory()

static HRESULT WINAPI update_searcher_QueryHistory ( IUpdateSearcher *  This,
LONG  startIndex,
LONG  count,
IUpdateHistoryEntryCollection **  retval 
)
static

Definition at line 229 of file searcher.c.

234{
235 FIXME("\n");
236 return E_NOTIMPL;
237}

◆ update_searcher_QueryInterface()

static HRESULT WINAPI update_searcher_QueryInterface ( IUpdateSearcher *  iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 67 of file searcher.c.

71{
73
74 TRACE("%p %s %p\n", This, debugstr_guid( riid ), ppvObject );
75
76 if ( IsEqualGUID( riid, &IID_IUpdateSearcher ) ||
79 {
80 *ppvObject = iface;
81 }
82 else
83 {
84 FIXME("interface %s not implemented\n", debugstr_guid(riid));
85 return E_NOINTERFACE;
86 }
87 IUpdateSearcher_AddRef( iface );
88 return S_OK;
89}
const GUID IID_IUnknown
REFIID riid
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define TRACE(s)
Definition: solgame.cpp:4
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ update_searcher_Release()

static ULONG WINAPI update_searcher_Release ( IUpdateSearcher *  iface)
static

Definition at line 54 of file searcher.c.

56{
59 if (!refs)
60 {
61 TRACE("destroying %p\n", update_searcher);
63 }
64 return refs;
65}
#define InterlockedDecrement
Definition: armddk.h:52
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
long LONG
Definition: pedump.c:60

◆ update_searcher_Search()

static HRESULT WINAPI update_searcher_Search ( IUpdateSearcher *  This,
BSTR  criteria,
ISearchResult **  retval 
)
static

Definition at line 239 of file searcher.c.

243{
244 FIXME("\n");
245 return E_NOTIMPL;
246}

◆ UpdateSearcher_create()

HRESULT UpdateSearcher_create ( LPVOID ppObj)

Definition at line 317 of file searcher.c.

318{
319 update_searcher *searcher;
320
321 TRACE("(%p)\n", ppObj);
322
323 searcher = HeapAlloc( GetProcessHeap(), 0, sizeof(*searcher) );
324 if (!searcher) return E_OUTOFMEMORY;
325
327 searcher->refs = 1;
328
329 *ppObj = &searcher->IUpdateSearcher_iface;
330
331 TRACE("returning iface %p\n", *ppObj);
332 return S_OK;
333}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define HeapAlloc
Definition: compat.h:733
static const struct IUpdateSearcherVtbl update_searcher_vtbl
Definition: searcher.c:288
IUpdateSearcher IUpdateSearcher_iface
Definition: searcher.c:38

Referenced by update_session_CreateUpdateSearcher().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( wuapi  )

Variable Documentation

◆ update_searcher_vtbl

const struct IUpdateSearcherVtbl update_searcher_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI update_searcher_QueryInterface(IUpdateSearcher *iface, REFIID riid, void **ppvObject)
Definition: searcher.c:67
static HRESULT WINAPI update_searcher_put_ClientApplicationID(IUpdateSearcher *This, BSTR value)
Definition: searcher.c:160
static HRESULT WINAPI update_searcher_put_IncludePotentiallySupersededUpdates(IUpdateSearcher *This, VARIANT_BOOL value)
Definition: searcher.c:176
static HRESULT WINAPI update_searcher_get_IncludePotentiallySupersededUpdates(IUpdateSearcher *This, VARIANT_BOOL *retval)
Definition: searcher.c:168
static HRESULT WINAPI update_searcher_Search(IUpdateSearcher *This, BSTR criteria, ISearchResult **retval)
Definition: searcher.c:239
static HRESULT WINAPI update_searcher_put_Online(IUpdateSearcher *This, VARIANT_BOOL value)
Definition: searcher.c:256
static ULONG WINAPI update_searcher_AddRef(IUpdateSearcher *iface)
Definition: searcher.c:47
static HRESULT WINAPI update_searcher_GetTotalHistoryCount(IUpdateSearcher *This, LONG *retval)
Definition: searcher.c:264
static HRESULT WINAPI update_searcher_get_ServiceID(IUpdateSearcher *This, BSTR *retval)
Definition: searcher.c:272
static HRESULT WINAPI update_searcher_get_ClientApplicationID(IUpdateSearcher *This, BSTR *retval)
Definition: searcher.c:152
static HRESULT WINAPI update_searcher_EndSearch(IUpdateSearcher *This, ISearchJob *searchJob, ISearchResult **retval)
Definition: searcher.c:211
static HRESULT WINAPI update_searcher_Invoke(IUpdateSearcher *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: searcher.c:121
static HRESULT WINAPI update_searcher_EscapeString(IUpdateSearcher *This, BSTR unescaped, BSTR *retval)
Definition: searcher.c:220
static HRESULT WINAPI update_searcher_BeginSearch(IUpdateSearcher *This, BSTR criteria, IUnknown *onCompleted, VARIANT state, ISearchJob **retval)
Definition: searcher.c:200
static HRESULT WINAPI update_searcher_put_ServiceID(IUpdateSearcher *This, BSTR value)
Definition: searcher.c:280
static HRESULT WINAPI update_searcher_put_ServerSelection(IUpdateSearcher *This, ServerSelection value)
Definition: searcher.c:192
static HRESULT WINAPI update_searcher_GetTypeInfoCount(IUpdateSearcher *iface, UINT *pctinfo)
Definition: searcher.c:91
static HRESULT WINAPI update_searcher_GetIDsOfNames(IUpdateSearcher *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: searcher.c:109
static HRESULT WINAPI update_searcher_get_ServerSelection(IUpdateSearcher *This, ServerSelection *retval)
Definition: searcher.c:184
static HRESULT WINAPI update_searcher_get_Online(IUpdateSearcher *This, VARIANT_BOOL *retval)
Definition: searcher.c:248
static HRESULT WINAPI update_searcher_get_CanAutomaticallyUpgradeService(IUpdateSearcher *This, VARIANT_BOOL *retval)
Definition: searcher.c:136
static HRESULT WINAPI update_searcher_QueryHistory(IUpdateSearcher *This, LONG startIndex, LONG count, IUpdateHistoryEntryCollection **retval)
Definition: searcher.c:229
static HRESULT WINAPI update_searcher_GetTypeInfo(IUpdateSearcher *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: searcher.c:99
static HRESULT WINAPI update_searcher_put_CanAutomaticallyUpgradeService(IUpdateSearcher *This, VARIANT_BOOL value)
Definition: searcher.c:144
static ULONG WINAPI update_searcher_Release(IUpdateSearcher *iface)
Definition: searcher.c:54

Definition at line 288 of file searcher.c.

Referenced by UpdateSearcher_create().