ReactOS  0.4.14-dev-342-gdc047f9
propsys_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 PropertyStore_CreateInstance (IUnknown *outer, REFIID riid, void **ppv) DECLSPEC_HIDDEN
 

Function Documentation

◆ PropertyStore_CreateInstance()

HRESULT PropertyStore_CreateInstance ( IUnknown outer,
REFIID  riid,
void **  ppv 
)

Definition at line 453 of file propstore.c.

454 {
456  HRESULT ret;
457 
458  TRACE("(%p,%s,%p)\n", pUnkOuter, debugstr_guid(iid), ppv);
459 
460  *ppv = NULL;
461 
462  if (pUnkOuter) return CLASS_E_NOAGGREGATION;
463 
464  This = HeapAlloc(GetProcessHeap(), 0, sizeof(PropertyStore));
465  if (!This) return E_OUTOFMEMORY;
466 
467  This->IPropertyStoreCache_iface.lpVtbl = &PropertyStore_Vtbl;
468  This->ref = 1;
470  This->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PropertyStore.lock");
471  list_init(&This->formats);
472 
473  ret = IPropertyStoreCache_QueryInterface(&This->IPropertyStoreCache_iface, iid, ppv);
474  IPropertyStoreCache_Release(&This->IPropertyStoreCache_iface);
475 
476  return ret;
477 }
#define DWORD_PTR
Definition: treelist.c:76
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG HRESULT
Definition: typedefs.h:77
int ret
static const IPropertyStoreCacheVtbl PropertyStore_Vtbl
Definition: propstore.c:438
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149

Referenced by InMemoryPropertyStoreFactory_CreateInstance().