ReactOS  0.4.15-dev-1384-g878186b
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 }
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 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 }
static update_searcher * impl_from_IUpdateSearcher(IUpdateSearcher *iface)
Definition: searcher.c:42
#define InterlockedIncrement
Definition: armddk.h:53

◆ 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: debug.h:111
#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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:51

◆ 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
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
static update_searcher * impl_from_IUpdateSearcher(IUpdateSearcher *iface)
Definition: searcher.c:42
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:51
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ 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 }
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:595
#define InterlockedDecrement
Definition: armddk.h:52
static update_searcher * impl_from_IUpdateSearcher(IUpdateSearcher *iface)
Definition: searcher.c:42
#define HeapFree(x, y, z)
Definition: compat.h:594

◆ 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 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 
326  searcher->IUpdateSearcher_iface.lpVtbl = &update_searcher_vtbl;
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 TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
IUpdateSearcher IUpdateSearcher_iface
Definition: searcher.c:38
static const struct IUpdateSearcherVtbl update_searcher_vtbl
Definition: searcher.c:288
#define S_OK
Definition: intsafe.h:51

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_GetIDsOfNames(IUpdateSearcher *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: searcher.c:109
static HRESULT WINAPI update_searcher_GetTotalHistoryCount(IUpdateSearcher *This, LONG *retval)
Definition: searcher.c:264
static ULONG WINAPI update_searcher_AddRef(IUpdateSearcher *iface)
Definition: searcher.c:47
static HRESULT WINAPI update_searcher_get_CanAutomaticallyUpgradeService(IUpdateSearcher *This, VARIANT_BOOL *retval)
Definition: searcher.c:136
static HRESULT WINAPI update_searcher_get_Online(IUpdateSearcher *This, VARIANT_BOOL *retval)
Definition: searcher.c:248
static HRESULT WINAPI update_searcher_EscapeString(IUpdateSearcher *This, BSTR unescaped, BSTR *retval)
Definition: searcher.c:220
static HRESULT WINAPI update_searcher_get_IncludePotentiallySupersededUpdates(IUpdateSearcher *This, VARIANT_BOOL *retval)
Definition: searcher.c:168
static HRESULT WINAPI update_searcher_get_ServiceID(IUpdateSearcher *This, BSTR *retval)
Definition: searcher.c:272
static HRESULT WINAPI update_searcher_put_ServerSelection(IUpdateSearcher *This, ServerSelection value)
Definition: searcher.c:192
static HRESULT WINAPI update_searcher_EndSearch(IUpdateSearcher *This, ISearchJob *searchJob, ISearchResult **retval)
Definition: searcher.c:211
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 HRESULT WINAPI update_searcher_get_ServerSelection(IUpdateSearcher *This, ServerSelection *retval)
Definition: searcher.c:184
static HRESULT WINAPI update_searcher_put_ClientApplicationID(IUpdateSearcher *This, BSTR value)
Definition: searcher.c:160
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_get_ClientApplicationID(IUpdateSearcher *This, BSTR *retval)
Definition: searcher.c:152
static HRESULT WINAPI update_searcher_put_Online(IUpdateSearcher *This, VARIANT_BOOL value)
Definition: searcher.c:256
static HRESULT WINAPI update_searcher_QueryHistory(IUpdateSearcher *This, LONG startIndex, LONG count, IUpdateHistoryEntryCollection **retval)
Definition: searcher.c:229
static ULONG WINAPI update_searcher_Release(IUpdateSearcher *iface)
Definition: searcher.c:54
static HRESULT WINAPI update_searcher_GetTypeInfoCount(IUpdateSearcher *iface, UINT *pctinfo)
Definition: searcher.c:91
static HRESULT WINAPI update_searcher_Search(IUpdateSearcher *This, BSTR criteria, ISearchResult **retval)
Definition: searcher.c:239
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_QueryInterface(IUpdateSearcher *iface, REFIID riid, void **ppvObject)
Definition: searcher.c:67
static HRESULT WINAPI update_searcher_put_ServiceID(IUpdateSearcher *This, BSTR value)
Definition: searcher.c:280
static HRESULT WINAPI update_searcher_put_IncludePotentiallySupersededUpdates(IUpdateSearcher *This, VARIANT_BOOL value)
Definition: searcher.c:176

Definition at line 288 of file searcher.c.

Referenced by UpdateSearcher_create().