ReactOS  0.4.14-dev-1034-g1e60116
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 185 of file name.c.

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

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, (lstrlenW( src ) + 1) * sizeof(WCHAR) );
38  if (dst) lstrcpyW( dst, src );
39  return dst;
40 }
#define lstrlenW
Definition: compat.h:415
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
#define lstrcpyW
Definition: compat.h:414
GLenum GLenum dst
Definition: glext.h:6340