ReactOS 0.4.17-dev-966-gf06eace
wmiutils_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 WbemPath_create (LPVOID *)
 
HRESULT WbemStatusCodeText_create (LPVOID *)
 

Function Documentation

◆ WbemPath_create()

HRESULT WbemPath_create ( LPVOID *  ppObj)

Definition at line 1293 of file path.c.

1294{
1295 struct path *path;
1296
1297 TRACE("%p\n", ppObj);
1298
1299 if (!(path = calloc( 1, sizeof(*path) ))) return E_OUTOFMEMORY;
1300
1301 path->IWbemPath_iface.lpVtbl = &path_vtbl;
1302 path->refs = 1;
1304 path->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": wmiutils_path.cs");
1305 init_path( path );
1306
1307 *ppObj = &path->IWbemPath_iface;
1308
1309 TRACE("returning iface %p\n", *ppObj);
1310 return S_OK;
1311}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
BOOL WINAPI InitializeCriticalSectionEx(OUT LPCRITICAL_SECTION lpCriticalSection, IN DWORD dwSpinCount, IN DWORD flags)
Definition: sync.c:107
static const struct IWbemPathVtbl path_vtbl
Definition: path.c:1260
static void init_path(struct path *path)
Definition: path.c:297
#define S_OK
Definition: intsafe.h:52
#define calloc
Definition: rosglue.h:14
#define TRACE(s)
Definition: solgame.cpp:4
PRTL_CRITICAL_SECTION_DEBUG DebugInfo
Definition: rtltypes.h:1478
LONG refs
Definition: path.c:52
IWbemPath IWbemPath_iface
Definition: path.c:51
CRITICAL_SECTION cs
Definition: path.c:53
#define DWORD_PTR
Definition: treelist.c:76
#define RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
Definition: winnt_old.h:1156

◆ WbemStatusCodeText_create()

HRESULT WbemStatusCodeText_create ( LPVOID *  ppObj)

Definition at line 129 of file statuscode.c.

130{
131 status_code *sc;
132
133 TRACE("(%p)\n", ppObj);
134
135 if (!(sc = calloc( 1, sizeof(*sc) ))) return E_OUTOFMEMORY;
136
138 sc->refs = 1;
139
140 *ppObj = &sc->IWbemStatusCodeText_iface;
141
142 TRACE("returning iface %p\n", *ppObj);
143 return S_OK;
144}
static const struct IWbemStatusCodeTextVtbl status_code_vtbl
Definition: statuscode.c:120
IWbemStatusCodeText IWbemStatusCodeText_iface
Definition: statuscode.c:36