ReactOS  0.4.13-dev-563-g0561610
winsxs.idl File Reference

Go to the source code of this file.

Classes

struct  _FUSION_INSTALL_REFERENCE_
 
struct  _ASSEMBLY_INFO
 
interface  IAssemblyCache
 
interface  IAssemblyCacheItem
 
interface  unique
 

Typedefs

typedef struct _FUSION_INSTALL_REFERENCE_ FUSION_INSTALL_REFERENCE
 
typedef struct _FUSION_INSTALL_REFERENCE_LPFUSION_INSTALL_REFERENCE
 
typedef struct _ASSEMBLY_INFO ASSEMBLY_INFO
 
typedef const struct _FUSION_INSTALL_REFERENCE_LPCFUSION_INSTALL_REFERENCE
 

Enumerations

enum  CREATE_ASM_NAME_OBJ_FLAGS { CANOF_PARSE_DISPLAY_NAME = 0x1, CANOF_SET_DEFAULT_VALUES = 0x2 }
 

Functions

HRESULT WINAPI CreateAssemblyCache (IAssemblyCache **, DWORD)
 
HRESULT WINAPI CreateAssemblyNameObject (LPASSEMBLYNAME *, LPCWSTR, DWORD, LPVOID)
 

Typedef Documentation

◆ ASSEMBLY_INFO

◆ FUSION_INSTALL_REFERENCE

◆ LPCFUSION_INSTALL_REFERENCE

◆ LPFUSION_INSTALL_REFERENCE

Enumeration Type Documentation

◆ CREATE_ASM_NAME_OBJ_FLAGS

Enumerator
CANOF_PARSE_DISPLAY_NAME 
CANOF_SET_DEFAULT_VALUES 

Definition at line 191 of file winsxs.idl.

Function Documentation

◆ CreateAssemblyCache()

HRESULT WINAPI CreateAssemblyCache ( IAssemblyCache **  ,
DWORD   
)

Definition at line 553 of file asmcache.c.

554 {
556 
557  TRACE("(%p, %d)\n", ppAsmCache, dwReserved);
558 
559  if (!ppAsmCache)
560  return E_INVALIDARG;
561 
562  *ppAsmCache = NULL;
563 
564  if (!(cache = heap_alloc(sizeof(*cache)))) return E_OUTOFMEMORY;
565 
567  cache->ref = 1;
569  if (!cache->lock)
570  {
571  heap_free( cache );
572  return HRESULT_FROM_WIN32( GetLastError() );
573  }
574  *ppAsmCache = &cache->IAssemblyCache_iface;
575  return S_OK;
576 }
Definition: cache.c:46
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
HANDLE lock
Definition: cache.c:50
#define TRACE(s)
Definition: solgame.cpp:4
static const IAssemblyCacheVtbl AssemblyCacheVtbl
Definition: asmcache.c:539
static IOleCache * cache
Definition: ole2.c:75
IAssemblyCache IAssemblyCache_iface
Definition: cache.c:48
#define S_OK
Definition: intsafe.h:59
HANDLE WINAPI DECLSPEC_HOTPATCH CreateMutexW(IN LPSECURITY_ATTRIBUTES lpMutexAttributes OPTIONAL, IN BOOL bInitialOwner, IN LPCWSTR lpName OPTIONAL)
Definition: synch.c:522
static const WCHAR cache_mutex_nameW[]
Definition: asmcache.c:57
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

Referenced by test_QueryAssemblyInfo().

◆ CreateAssemblyNameObject()

HRESULT WINAPI CreateAssemblyNameObject ( LPASSEMBLYNAME *  ,
LPCWSTR  ,
DWORD  ,
LPVOID   
)

Definition at line 366 of file name.c.

371 {
372  struct name *name;
373  HRESULT hr;
374 
375  TRACE("%p, %s, 0x%08x, %p\n", obj, debugstr_w(assembly), flags, reserved);
376 
377  if (!obj) return E_INVALIDARG;
378 
379  *obj = NULL;
381  return E_INVALIDARG;
382 
383  if (!(name = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*name) )))
384  return E_OUTOFMEMORY;
385 
387  name->refs = 1;
388 
390  if (hr != S_OK)
391  {
392  HeapFree( GetProcessHeap(), 0, name->name );
393  HeapFree( GetProcessHeap(), 0, name->arch );
394  HeapFree( GetProcessHeap(), 0, name->token );
395  HeapFree( GetProcessHeap(), 0, name->type );
397  HeapFree( GetProcessHeap(), 0, name );
398  return hr;
399  }
401  return S_OK;
402 }
WCHAR * token
Definition: name.c:42
WCHAR * version
Definition: name.c:44
HRESULT hr
Definition: shlfolder.c:183
IAssemblyName IAssemblyName_iface
Definition: name.c:38
WCHAR * type
Definition: name.c:43
LPCSTR name
Definition: name.c:34
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define debugstr_w
Definition: kernel32.h:32
r reserved
Definition: btrfs.c:2704
#define E_INVALIDARG
Definition: ddrawi.h:101
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG HRESULT
Definition: typedefs.h:77
LONG refs
Definition: name.c:39
WCHAR * arch
Definition: name.c:41
GLbitfield flags
Definition: glext.h:7161
#define S_OK
Definition: intsafe.h:59
static const IAssemblyNameVtbl name_vtbl
Definition: name.c:281
static HRESULT parse_displayname(struct name *name, const WCHAR *displayname)
Definition: name.c:313
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
Definition: name.c:36
#define HeapFree(x, y, z)
Definition: compat.h:394
WCHAR * name
Definition: name.c:40

Referenced by test_CreateAssemblyNameObject().