ReactOS 0.4.15-dev-7918-g2a2556c
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.

22{
28};
@ NAME_ATTR_ID_VERSION
Definition: sxs_private.h:27
@ NAME_ATTR_ID_NAME
Definition: sxs_private.h:23
@ NAME_ATTR_ID_TYPE
Definition: sxs_private.h:26
@ NAME_ATTR_ID_ARCH
Definition: sxs_private.h:24
@ NAME_ATTR_ID_TOKEN
Definition: sxs_private.h:25

Function Documentation

◆ get_name_attribute()

const WCHAR * get_name_attribute ( IAssemblyName iface,
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}
#define ERR(fmt,...)
Definition: debug.h:110
#define NULL
Definition: types.h:112
static struct name * impl_from_IAssemblyName(IAssemblyName *iface)
Definition: name.c:54
Definition: name.c:39
WCHAR * arch
Definition: name.c:43
WCHAR * type
Definition: name.c:45
WCHAR * token
Definition: name.c:44
WCHAR * name
Definition: name.c:42
WCHAR * version
Definition: name.c:46

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 GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define lstrcpyW
Definition: compat.h:749
#define lstrlenW
Definition: compat.h:750
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
__wchar_t WCHAR
Definition: xmlstorage.h:180