ReactOS  0.4.15-dev-1384-g878186b
updates.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 updates.c:

Go to the source code of this file.

Classes

struct  _automatic_updates
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct _automatic_updates automatic_updates
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (wuapi)
 
static automatic_updatesimpl_from_IAutomaticUpdates (IAutomaticUpdates *iface)
 
static ULONG WINAPI automatic_updates_AddRef (IAutomaticUpdates *iface)
 
static ULONG WINAPI automatic_updates_Release (IAutomaticUpdates *iface)
 
static HRESULT WINAPI automatic_updates_QueryInterface (IAutomaticUpdates *iface, REFIID riid, void **ppvObject)
 
static HRESULT WINAPI automatic_updates_GetTypeInfoCount (IAutomaticUpdates *iface, UINT *pctinfo)
 
static HRESULT WINAPI automatic_updates_GetTypeInfo (IAutomaticUpdates *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI automatic_updates_GetIDsOfNames (IAutomaticUpdates *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI automatic_updates_Invoke (IAutomaticUpdates *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI automatic_updates_DetectNow (IAutomaticUpdates *This)
 
static HRESULT WINAPI automatic_updates_Pause (IAutomaticUpdates *This)
 
static HRESULT WINAPI automatic_updates_Resume (IAutomaticUpdates *This)
 
static HRESULT WINAPI automatic_updates_ShowSettingsDialog (IAutomaticUpdates *This)
 
static HRESULT WINAPI automatic_updates_EnableService (IAutomaticUpdates *This)
 
static HRESULT WINAPI automatic_updates_get_ServiceEnabled (IAutomaticUpdates *This, VARIANT_BOOL *retval)
 
static HRESULT WINAPI automatic_updates_get_Settings (IAutomaticUpdates *This, IAutomaticUpdatesSettings **retval)
 
HRESULT AutomaticUpdates_create (LPVOID *ppObj)
 

Variables

static const struct IAutomaticUpdatesVtbl automatic_updates_vtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file updates.c.

Typedef Documentation

◆ automatic_updates

Function Documentation

◆ automatic_updates_AddRef()

static ULONG WINAPI automatic_updates_AddRef ( IAutomaticUpdates *  iface)
static

Definition at line 47 of file updates.c.

49 {
52 }
#define InterlockedIncrement
Definition: armddk.h:53
static automatic_updates * impl_from_IAutomaticUpdates(IAutomaticUpdates *iface)
Definition: updates.c:42

◆ automatic_updates_DetectNow()

static HRESULT WINAPI automatic_updates_DetectNow ( IAutomaticUpdates *  This)
static

Definition at line 136 of file updates.c.

138 {
139  FIXME("\n");
140  return E_NOTIMPL;
141 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_EnableService()

static HRESULT WINAPI automatic_updates_EnableService ( IAutomaticUpdates *  This)
static

Definition at line 164 of file updates.c.

166 {
167  FIXME("\n");
168  return E_NOTIMPL;
169 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_get_ServiceEnabled()

static HRESULT WINAPI automatic_updates_get_ServiceEnabled ( IAutomaticUpdates *  This,
VARIANT_BOOL retval 
)
static

Definition at line 171 of file updates.c.

174 {
175  FIXME("%p\n", retval);
176  return E_NOTIMPL;
177 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_get_Settings()

static HRESULT WINAPI automatic_updates_get_Settings ( IAutomaticUpdates *  This,
IAutomaticUpdatesSettings **  retval 
)
static

Definition at line 179 of file updates.c.

182 {
183  FIXME("%p\n", retval);
184  return E_NOTIMPL;
185 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_GetIDsOfNames()

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

Definition at line 109 of file updates.c.

116 {
117  FIXME("\n");
118  return E_NOTIMPL;
119 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_GetTypeInfo()

static HRESULT WINAPI automatic_updates_GetTypeInfo ( IAutomaticUpdates *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 99 of file updates.c.

104 {
105  FIXME("\n");
106  return E_NOTIMPL;
107 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_GetTypeInfoCount()

static HRESULT WINAPI automatic_updates_GetTypeInfoCount ( IAutomaticUpdates *  iface,
UINT pctinfo 
)
static

Definition at line 91 of file updates.c.

94 {
95  FIXME("\n");
96  return E_NOTIMPL;
97 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_Invoke()

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

Definition at line 121 of file updates.c.

131 {
132  FIXME("\n");
133  return E_NOTIMPL;
134 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ automatic_updates_Pause()

static HRESULT WINAPI automatic_updates_Pause ( IAutomaticUpdates *  This)
static

Definition at line 143 of file updates.c.

145 {
146  FIXME("\n");
147  return S_OK;
148 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:51

◆ automatic_updates_QueryInterface()

static HRESULT WINAPI automatic_updates_QueryInterface ( IAutomaticUpdates *  iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 67 of file updates.c.

71 {
73 
74  TRACE("%p %s %p\n", This, debugstr_guid( riid ), ppvObject );
75 
76  if ( IsEqualGUID( riid, &IID_IAutomaticUpdates ) ||
79  {
80  *ppvObject = iface;
81  }
82  else
83  {
84  FIXME("interface %s not implemented\n", debugstr_guid(riid));
85  return E_NOINTERFACE;
86  }
87  IAutomaticUpdates_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
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
static automatic_updates * impl_from_IAutomaticUpdates(IAutomaticUpdates *iface)
Definition: updates.c:42

◆ automatic_updates_Release()

static ULONG WINAPI automatic_updates_Release ( IAutomaticUpdates *  iface)
static

Definition at line 54 of file updates.c.

56 {
59  if (!refs)
60  {
61  TRACE("destroying %p\n", automatic_updates);
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 automatic_updates * impl_from_IAutomaticUpdates(IAutomaticUpdates *iface)
Definition: updates.c:42
#define HeapFree(x, y, z)
Definition: compat.h:594

◆ automatic_updates_Resume()

static HRESULT WINAPI automatic_updates_Resume ( IAutomaticUpdates *  This)
static

Definition at line 150 of file updates.c.

152 {
153  FIXME("\n");
154  return S_OK;
155 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:51

◆ automatic_updates_ShowSettingsDialog()

static HRESULT WINAPI automatic_updates_ShowSettingsDialog ( IAutomaticUpdates *  This)
static

Definition at line 157 of file updates.c.

159 {
160  FIXME("\n");
161  return E_NOTIMPL;
162 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ AutomaticUpdates_create()

HRESULT AutomaticUpdates_create ( LPVOID ppObj)

Definition at line 205 of file updates.c.

206 {
207  automatic_updates *updates;
208 
209  TRACE("(%p)\n", ppObj);
210 
211  updates = HeapAlloc( GetProcessHeap(), 0, sizeof(*updates) );
212  if (!updates) return E_OUTOFMEMORY;
213 
215  updates->refs = 1;
216 
217  *ppObj = &updates->IAutomaticUpdates_iface;
218 
219  TRACE("returning iface %p\n", *ppObj);
220  return S_OK;
221 }
IAutomaticUpdates IAutomaticUpdates_iface
Definition: updates.c:38
#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)
#define S_OK
Definition: intsafe.h:51
static const struct IAutomaticUpdatesVtbl automatic_updates_vtbl
Definition: updates.c:187

◆ impl_from_IAutomaticUpdates()

static automatic_updates* impl_from_IAutomaticUpdates ( IAutomaticUpdates *  iface)
inlinestatic

Definition at line 42 of file updates.c.

43 {
44  return CONTAINING_RECORD(iface, automatic_updates, IAutomaticUpdates_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 automatic_updates_AddRef(), automatic_updates_QueryInterface(), and automatic_updates_Release().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( wuapi  )

Variable Documentation

◆ automatic_updates_vtbl

const struct IAutomaticUpdatesVtbl automatic_updates_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI automatic_updates_GetIDsOfNames(IAutomaticUpdates *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: updates.c:109
static HRESULT WINAPI automatic_updates_Pause(IAutomaticUpdates *This)
Definition: updates.c:143
static HRESULT WINAPI automatic_updates_ShowSettingsDialog(IAutomaticUpdates *This)
Definition: updates.c:157
static HRESULT WINAPI automatic_updates_QueryInterface(IAutomaticUpdates *iface, REFIID riid, void **ppvObject)
Definition: updates.c:67
static HRESULT WINAPI automatic_updates_GetTypeInfo(IAutomaticUpdates *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: updates.c:99
static HRESULT WINAPI automatic_updates_EnableService(IAutomaticUpdates *This)
Definition: updates.c:164
static HRESULT WINAPI automatic_updates_GetTypeInfoCount(IAutomaticUpdates *iface, UINT *pctinfo)
Definition: updates.c:91
static ULONG WINAPI automatic_updates_Release(IAutomaticUpdates *iface)
Definition: updates.c:54
static HRESULT WINAPI automatic_updates_Invoke(IAutomaticUpdates *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: updates.c:121
static HRESULT WINAPI automatic_updates_get_Settings(IAutomaticUpdates *This, IAutomaticUpdatesSettings **retval)
Definition: updates.c:179
static ULONG WINAPI automatic_updates_AddRef(IAutomaticUpdates *iface)
Definition: updates.c:47
static HRESULT WINAPI automatic_updates_get_ServiceEnabled(IAutomaticUpdates *This, VARIANT_BOOL *retval)
Definition: updates.c:171
static HRESULT WINAPI automatic_updates_DetectNow(IAutomaticUpdates *This)
Definition: updates.c:136
static HRESULT WINAPI automatic_updates_Resume(IAutomaticUpdates *This)
Definition: updates.c:150

Definition at line 187 of file updates.c.

Referenced by AutomaticUpdates_create().