ReactOS  0.4.14-dev-342-gdc047f9
sxs_private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  name_attr_id {
  NAME_ATTR_ID_NAME, NAME_ATTR_ID_ARCH, NAME_ATTR_ID_TOKEN, NAME_ATTR_ID_TYPE,
  NAME_ATTR_ID_VERSION
}
 

Functions

const WCHARget_name_attribute (IAssemblyName *, enum name_attr_id) DECLSPEC_HIDDEN
 
static WCHARstrdupW (const WCHAR *src)
 

Enumeration Type Documentation

◆ name_attr_id

Enumerator
NAME_ATTR_ID_NAME 
NAME_ATTR_ID_ARCH 
NAME_ATTR_ID_TOKEN 
NAME_ATTR_ID_TYPE 
NAME_ATTR_ID_VERSION 

Definition at line 21 of file sxs_private.h.

Function Documentation

◆ get_name_attribute()

const WCHAR* get_name_attribute ( IAssemblyName ,
enum  name_attr_id 
)

Definition at line 183 of file name.c.

184 {
185  struct name *name = impl_from_IAssemblyName( iface );
186 
187  switch (id)
188  {
189  case NAME_ATTR_ID_NAME: return name->name;
190  case NAME_ATTR_ID_ARCH: return name->arch;
191  case NAME_ATTR_ID_TOKEN: return name->token;
192  case NAME_ATTR_ID_TYPE: return name->type;
193  case NAME_ATTR_ID_VERSION: return name->version;
194  default:
195  ERR("unhandled name attribute %u\n", id);
196  break;
197  }
198  return NULL;
199 }
WCHAR * token
Definition: name.c:42
WCHAR * version
Definition: name.c:44
WCHAR * type
Definition: name.c:43
smooth NULL
Definition: ftsmooth.c:416
static struct name * impl_from_IAssemblyName(IAssemblyName *iface)
Definition: name.c:52
WCHAR * arch
Definition: name.c:41
#define ERR(fmt,...)
Definition: debug.h:109
Definition: name.c:36
WCHAR * name
Definition: name.c:40

Referenced by cache_QueryAssemblyInfo(), cache_UninstallAssembly(), and name_GetName().

◆ strdupW()

static WCHAR* strdupW ( const WCHAR src)
inlinestatic

Definition at line 32 of file sxs_private.h.

33 {
34  WCHAR *dst;
35 
36  if (!src) return NULL;
37  dst = HeapAlloc( GetProcessHeap(), 0, (strlenW( src ) + 1) * sizeof(WCHAR) );
38  if (dst) strcpyW( dst, src );
39  return dst;
40 }
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
GLenum src
Definition: glext.h:6340
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
Definition: unicode.h:219
GLenum GLenum dst
Definition: glext.h:6340