ReactOS 0.4.15-dev-7918-g2a2556c
wuapi_private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HRESULT AutomaticUpdates_create (LPVOID *ppObj) DECLSPEC_HIDDEN
 
HRESULT UpdateSession_create (LPVOID *ppObj) DECLSPEC_HIDDEN
 
HRESULT UpdateSearcher_create (LPVOID *ppObj) DECLSPEC_HIDDEN
 
HRESULT UpdateDownloader_create (LPVOID *ppObj) DECLSPEC_HIDDEN
 
HRESULT UpdateInstaller_create (LPVOID *ppObj) DECLSPEC_HIDDEN
 
HRESULT SystemInformation_create (LPVOID *ppObj) DECLSPEC_HIDDEN
 

Function Documentation

◆ 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}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define S_OK
Definition: intsafe.h:52
#define TRACE(s)
Definition: solgame.cpp:4
IAutomaticUpdates IAutomaticUpdates_iface
Definition: updates.c:38
static const struct IAutomaticUpdatesVtbl automatic_updates_vtbl
Definition: updates.c:187

◆ SystemInformation_create()

HRESULT SystemInformation_create ( LPVOID ppObj)

Definition at line 146 of file systeminfo.c.

147{
149
150 TRACE("(%p)\n", ppObj);
151
152 info = HeapAlloc(GetProcessHeap(), 0, sizeof(*info));
153 if (!info)
154 return E_OUTOFMEMORY;
155
156 info->ISystemInformation_iface.lpVtbl = &systeminfo_vtbl;
157 info->refs = 1;
158
159 *ppObj = &info->ISystemInformation_iface;
160
161 TRACE("returning iface %p\n", *ppObj);
162 return S_OK;
163}
static const struct ISystemInformationVtbl systeminfo_vtbl
Definition: systeminfo.c:133

◆ UpdateDownloader_create()

HRESULT UpdateDownloader_create ( LPVOID ppObj)

Definition at line 251 of file downloader.c.

252{
253 update_downloader *downloader;
254
255 TRACE("(%p)\n", ppObj);
256
257 downloader = HeapAlloc( GetProcessHeap(), 0, sizeof(*downloader) );
258 if (!downloader) return E_OUTOFMEMORY;
259
261 downloader->refs = 1;
262
263 *ppObj = &downloader->IUpdateDownloader_iface;
264
265 TRACE("returning iface %p\n", *ppObj);
266 return S_OK;
267}
static const struct IUpdateDownloaderVtbl update_downloader_vtbl
Definition: downloader.c:229
IUpdateDownloader IUpdateDownloader_iface
Definition: downloader.c:39

Referenced by update_session_CreateUpdateDownloader().

◆ UpdateInstaller_create()

HRESULT UpdateInstaller_create ( LPVOID ppObj)

Definition at line 345 of file installer.c.

346{
347 update_installer *installer;
348
349 TRACE("(%p)\n", ppObj);
350
351 installer = HeapAlloc( GetProcessHeap(), 0, sizeof(*installer) );
352 if (!installer) return E_OUTOFMEMORY;
353
355 installer->refs = 1;
356
357 *ppObj = &installer->IUpdateInstaller_iface;
358
359 TRACE("returning iface %p\n", *ppObj);
360 return S_OK;
361}
IUpdateInstaller IUpdateInstaller_iface
Definition: installer.c:38
static const struct IUpdateInstallerVtbl update_installer_vtbl
Definition: installer.c:313

Referenced by update_session_CreateUpdateInstaller().

◆ 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}
static const struct IUpdateSearcherVtbl update_searcher_vtbl
Definition: searcher.c:288
IUpdateSearcher IUpdateSearcher_iface
Definition: searcher.c:38

Referenced by update_session_CreateUpdateSearcher().

◆ UpdateSession_create()

HRESULT UpdateSession_create ( LPVOID ppObj)

Definition at line 219 of file session.c.

220{
222
223 TRACE("(%p)\n", ppObj);
224
225 session = HeapAlloc( GetProcessHeap(), 0, sizeof(*session) );
226 if (!session) return E_OUTOFMEMORY;
227
228 session->IUpdateSession_iface.lpVtbl = &update_session_vtbl;
229 session->refs = 1;
230
231 *ppObj = &session->IUpdateSession_iface;
232
233 TRACE("returning iface %p\n", *ppObj);
234 return S_OK;
235}
static const struct IUpdateSessionVtbl update_session_vtbl
Definition: session.c:200