ReactOS 0.4.16-dev-250-g3ecd236
corhdr.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RidToToken(rid, tktype)   ((rid) |= (tktype))
 
#define TokenFromRid(rid, tktype)   ((rid) | (tktype))
 
#define RidFromToken(tk)   ((RID)((tk) & 0x00ffffff))
 
#define TypeFromToken(tk)   ((ULONG32)((tk) & 0xff000000))
 
#define IsNilToken(tk)   ((RidFromToken(tk)) == 0)
 

Typedefs

typedef enum CorTokenType CorTokenType
 
typedef enum CorElementType CorElementType
 
typedef LPVOID mdScope
 
typedef ULONG32 mdToken
 
typedef mdToken mdModule
 
typedef mdToken mdTypeRef
 
typedef mdToken mdTypeDef
 
typedef mdToken mdFieldDef
 
typedef mdToken mdMethodDef
 
typedef mdToken mdParamDef
 
typedef mdToken mdInterfaceImpl
 
typedef mdToken mdMemberRef
 
typedef mdToken mdCustomAttribute
 
typedef mdToken mdPermission
 
typedef mdToken mdSignature
 
typedef mdToken mdEvent
 
typedef mdToken mdProperty
 
typedef mdToken mdModuleRef
 
typedef mdToken mdAssembly
 
typedef mdToken mdAssemblyRef
 
typedef mdToken mdFile
 
typedef mdToken mdExportedType
 
typedef mdToken mdManifestResource
 
typedef mdToken mdTypeSpec
 
typedef mdToken mdGenericParam
 
typedef mdToken mdMethodSpec
 
typedef mdToken mdGenericParamConstraint
 
typedef mdToken mdString
 
typedef mdToken mdCPToken
 

Enumerations

enum  CorTokenType {
  mdtModule = 0x00000000 , mdtTypeRef = 0x01000000 , mdtTypeDef = 0x02000000 , mdtFieldDef = 0x04000000 ,
  mdtMethodDef = 0x06000000 , mdtParamDef = 0x08000000 , mdtInterfaceImpl = 0x09000000 , mdtMemberRef = 0x0a000000 ,
  mdtCustomAttribute = 0x0c000000 , mdtPermission = 0x0e000000 , mdtSignature = 0x11000000 , mdtEvent = 0x14000000 ,
  mdtProperty = 0x17000000 , mdtModuleRef = 0x1a000000 , mdtTypeSpec = 0x1b000000 , mdtAssembly = 0x20000000 ,
  mdtAssemblyRef = 0x23000000 , mdtFile = 0x26000000 , mdtExportedType = 0x27000000 , mdtManifestResource = 0x28000000 ,
  mdtGenericParam = 0x2a000000 , mdtMethodSpec = 0x2b000000 , mdtGenericParamConstraint = 0x2c000000 , mdtString = 0x70000000 ,
  mdtName = 0x71000000 , mdtBaseType = 0x72000000
}
 
enum  CorElementType {
  ELEMENT_TYPE_END = 0x00 , ELEMENT_TYPE_VOID = 0x01 , ELEMENT_TYPE_BOOLEAN = 0x02 , ELEMENT_TYPE_CHAR = 0x03 ,
  ELEMENT_TYPE_I1 = 0x04 , ELEMENT_TYPE_U1 = 0x05 , ELEMENT_TYPE_I2 = 0x06 , ELEMENT_TYPE_U2 = 0x07 ,
  ELEMENT_TYPE_I4 = 0x08 , ELEMENT_TYPE_U4 = 0x09 , ELEMENT_TYPE_I8 = 0x0a , ELEMENT_TYPE_U8 = 0x0b ,
  ELEMENT_TYPE_R4 = 0x0c , ELEMENT_TYPE_R8 = 0x0d , ELEMENT_TYPE_STRING = 0x0e , ELEMENT_TYPE_PTR = 0x0f ,
  ELEMENT_TYPE_BYREF = 0x10 , ELEMENT_TYPE_VALUETYPE = 0x11 , ELEMENT_TYPE_CLASS = 0x12 , ELEMENT_TYPE_VAR = 0x13 ,
  ELEMENT_TYPE_ARRAY = 0x14 , ELEMENT_TYPE_GENERICINST = 0x15 , ELEMENT_TYPE_TYPEDBYREF = 0x16 , ELEMENT_TYPE_I = 0x18 ,
  ELEMENT_TYPE_U = 0x19 , ELEMENT_TYPE_FNPTR = 0x1b , ELEMENT_TYPE_OBJECT = 0x1c , ELEMENT_TYPE_SZARRAY = 0x1d ,
  ELEMENT_TYPE_MVAR = 0x1e , ELEMENT_TYPE_CMOD_REQD = 0x1f , ELEMENT_TYPE_CMOD_OPT = 0x20 , ELEMENT_TYPE_INTERNAL = 0x21 ,
  ELEMENT_TYPE_MAX = 0x22 , ELEMENT_TYPE_MODIFIER = 0x40 , ELEMENT_TYPE_SENTINEL = 0x01 | ELEMENT_TYPE_MODIFIER , ELEMENT_TYPE_PINNED = 0x05 | ELEMENT_TYPE_MODIFIER ,
  ELEMENT_TYPE_R4_HFA = 0x06 | ELEMENT_TYPE_MODIFIER , ELEMENT_TYPE_R8_HFA = 0x07 | ELEMENT_TYPE_MODIFIER
}
 

Macro Definition Documentation

◆ IsNilToken

#define IsNilToken (   tk)    ((RidFromToken(tk)) == 0)

Definition at line 99 of file corhdr.h.

◆ RidFromToken

#define RidFromToken (   tk)    ((RID)((tk) & 0x00ffffff))

Definition at line 97 of file corhdr.h.

◆ RidToToken

#define RidToToken (   rid,
  tktype 
)    ((rid) |= (tktype))

Definition at line 95 of file corhdr.h.

◆ TokenFromRid

#define TokenFromRid (   rid,
  tktype 
)    ((rid) | (tktype))

Definition at line 96 of file corhdr.h.

◆ TypeFromToken

#define TypeFromToken (   tk)    ((ULONG32)((tk) & 0xff000000))

Definition at line 98 of file corhdr.h.

Typedef Documentation

◆ CorElementType

◆ CorTokenType

◆ mdAssembly

Definition at line 118 of file corhdr.h.

◆ mdAssemblyRef

Definition at line 119 of file corhdr.h.

◆ mdCPToken

typedef mdToken mdCPToken

Definition at line 128 of file corhdr.h.

◆ mdCustomAttribute

Definition at line 112 of file corhdr.h.

◆ mdEvent

typedef mdToken mdEvent

Definition at line 115 of file corhdr.h.

◆ mdExportedType

Definition at line 121 of file corhdr.h.

◆ mdFieldDef

Definition at line 107 of file corhdr.h.

◆ mdFile

typedef mdToken mdFile

Definition at line 120 of file corhdr.h.

◆ mdGenericParam

Definition at line 124 of file corhdr.h.

◆ mdGenericParamConstraint

Definition at line 126 of file corhdr.h.

◆ mdInterfaceImpl

Definition at line 110 of file corhdr.h.

◆ mdManifestResource

Definition at line 122 of file corhdr.h.

◆ mdMemberRef

Definition at line 111 of file corhdr.h.

◆ mdMethodDef

Definition at line 108 of file corhdr.h.

◆ mdMethodSpec

Definition at line 125 of file corhdr.h.

◆ mdModule

typedef mdToken mdModule

Definition at line 104 of file corhdr.h.

◆ mdModuleRef

Definition at line 117 of file corhdr.h.

◆ mdParamDef

Definition at line 109 of file corhdr.h.

◆ mdPermission

Definition at line 113 of file corhdr.h.

◆ mdProperty

Definition at line 116 of file corhdr.h.

◆ mdScope

typedef LPVOID mdScope

Definition at line 101 of file corhdr.h.

◆ mdSignature

Definition at line 114 of file corhdr.h.

◆ mdString

typedef mdToken mdString

Definition at line 127 of file corhdr.h.

◆ mdToken

typedef ULONG32 mdToken

Definition at line 102 of file corhdr.h.

◆ mdTypeDef

typedef mdToken mdTypeDef

Definition at line 106 of file corhdr.h.

◆ mdTypeRef

typedef mdToken mdTypeRef

Definition at line 105 of file corhdr.h.

◆ mdTypeSpec

Definition at line 123 of file corhdr.h.

Enumeration Type Documentation

◆ CorElementType

Enumerator
ELEMENT_TYPE_END 
ELEMENT_TYPE_VOID 
ELEMENT_TYPE_BOOLEAN 
ELEMENT_TYPE_CHAR 
ELEMENT_TYPE_I1 
ELEMENT_TYPE_U1 
ELEMENT_TYPE_I2 
ELEMENT_TYPE_U2 
ELEMENT_TYPE_I4 
ELEMENT_TYPE_U4 
ELEMENT_TYPE_I8 
ELEMENT_TYPE_U8 
ELEMENT_TYPE_R4 
ELEMENT_TYPE_R8 
ELEMENT_TYPE_STRING 
ELEMENT_TYPE_PTR 
ELEMENT_TYPE_BYREF 
ELEMENT_TYPE_VALUETYPE 
ELEMENT_TYPE_CLASS 
ELEMENT_TYPE_VAR 
ELEMENT_TYPE_ARRAY 
ELEMENT_TYPE_GENERICINST 
ELEMENT_TYPE_TYPEDBYREF 
ELEMENT_TYPE_I 
ELEMENT_TYPE_U 
ELEMENT_TYPE_FNPTR 
ELEMENT_TYPE_OBJECT 
ELEMENT_TYPE_SZARRAY 
ELEMENT_TYPE_MVAR 
ELEMENT_TYPE_CMOD_REQD 
ELEMENT_TYPE_CMOD_OPT 
ELEMENT_TYPE_INTERNAL 
ELEMENT_TYPE_MAX 
ELEMENT_TYPE_MODIFIER 
ELEMENT_TYPE_SENTINEL 
ELEMENT_TYPE_PINNED 
ELEMENT_TYPE_R4_HFA 
ELEMENT_TYPE_R8_HFA 

Definition at line 52 of file corhdr.h.

53{
54 ELEMENT_TYPE_END = 0x00,
55 ELEMENT_TYPE_VOID = 0x01,
57 ELEMENT_TYPE_CHAR = 0x03,
58 ELEMENT_TYPE_I1 = 0x04,
59 ELEMENT_TYPE_U1 = 0x05,
60 ELEMENT_TYPE_I2 = 0x06,
61 ELEMENT_TYPE_U2 = 0x07,
62 ELEMENT_TYPE_I4 = 0x08,
63 ELEMENT_TYPE_U4 = 0x09,
64 ELEMENT_TYPE_I8 = 0x0a,
65 ELEMENT_TYPE_U8 = 0x0b,
66 ELEMENT_TYPE_R4 = 0x0c,
67 ELEMENT_TYPE_R8 = 0x0d,
69 ELEMENT_TYPE_PTR = 0x0f,
70 ELEMENT_TYPE_BYREF = 0x10,
72 ELEMENT_TYPE_CLASS = 0x12,
73 ELEMENT_TYPE_VAR = 0x13,
74 ELEMENT_TYPE_ARRAY = 0x14,
77 ELEMENT_TYPE_I = 0x18,
78 ELEMENT_TYPE_U = 0x19,
79 ELEMENT_TYPE_FNPTR = 0x1b,
82 ELEMENT_TYPE_MVAR = 0x1e,
86 ELEMENT_TYPE_MAX = 0x22,
92
CorElementType
Definition: corhdr.h:53
@ ELEMENT_TYPE_I2
Definition: corhdr.h:60
@ ELEMENT_TYPE_VALUETYPE
Definition: corhdr.h:71
@ ELEMENT_TYPE_U2
Definition: corhdr.h:61
@ ELEMENT_TYPE_U8
Definition: corhdr.h:65
@ ELEMENT_TYPE_CMOD_REQD
Definition: corhdr.h:83
@ ELEMENT_TYPE_FNPTR
Definition: corhdr.h:79
@ ELEMENT_TYPE_PTR
Definition: corhdr.h:69
@ ELEMENT_TYPE_U4
Definition: corhdr.h:63
@ ELEMENT_TYPE_U1
Definition: corhdr.h:59
@ ELEMENT_TYPE_OBJECT
Definition: corhdr.h:80
@ ELEMENT_TYPE_BOOLEAN
Definition: corhdr.h:56
@ ELEMENT_TYPE_SENTINEL
Definition: corhdr.h:88
@ ELEMENT_TYPE_R8_HFA
Definition: corhdr.h:91
@ ELEMENT_TYPE_SZARRAY
Definition: corhdr.h:81
@ ELEMENT_TYPE_MVAR
Definition: corhdr.h:82
@ ELEMENT_TYPE_ARRAY
Definition: corhdr.h:74
@ ELEMENT_TYPE_I8
Definition: corhdr.h:64
@ ELEMENT_TYPE_MAX
Definition: corhdr.h:86
@ ELEMENT_TYPE_CLASS
Definition: corhdr.h:72
@ ELEMENT_TYPE_R4
Definition: corhdr.h:66
@ ELEMENT_TYPE_TYPEDBYREF
Definition: corhdr.h:76
@ ELEMENT_TYPE_VAR
Definition: corhdr.h:73
@ ELEMENT_TYPE_CMOD_OPT
Definition: corhdr.h:84
@ ELEMENT_TYPE_I4
Definition: corhdr.h:62
@ ELEMENT_TYPE_U
Definition: corhdr.h:78
@ ELEMENT_TYPE_I1
Definition: corhdr.h:58
@ ELEMENT_TYPE_END
Definition: corhdr.h:54
@ ELEMENT_TYPE_VOID
Definition: corhdr.h:55
@ ELEMENT_TYPE_STRING
Definition: corhdr.h:68
@ ELEMENT_TYPE_R4_HFA
Definition: corhdr.h:90
@ ELEMENT_TYPE_I
Definition: corhdr.h:77
@ ELEMENT_TYPE_INTERNAL
Definition: corhdr.h:85
@ ELEMENT_TYPE_MODIFIER
Definition: corhdr.h:87
@ ELEMENT_TYPE_CHAR
Definition: corhdr.h:57
@ ELEMENT_TYPE_BYREF
Definition: corhdr.h:70
@ ELEMENT_TYPE_R8
Definition: corhdr.h:67
@ ELEMENT_TYPE_PINNED
Definition: corhdr.h:89
@ ELEMENT_TYPE_GENERICINST
Definition: corhdr.h:75

◆ CorTokenType

Enumerator
mdtModule 
mdtTypeRef 
mdtTypeDef 
mdtFieldDef 
mdtMethodDef 
mdtParamDef 
mdtInterfaceImpl 
mdtMemberRef 
mdtCustomAttribute 
mdtPermission 
mdtSignature 
mdtEvent 
mdtProperty 
mdtModuleRef 
mdtTypeSpec 
mdtAssembly 
mdtAssemblyRef 
mdtFile 
mdtExportedType 
mdtManifestResource 
mdtGenericParam 
mdtMethodSpec 
mdtGenericParamConstraint 
mdtString 
mdtName 
mdtBaseType 

Definition at line 22 of file corhdr.h.

23{
24 mdtModule = 0x00000000,
25 mdtTypeRef = 0x01000000,
26 mdtTypeDef = 0x02000000,
27 mdtFieldDef = 0x04000000,
28 mdtMethodDef = 0x06000000,
29 mdtParamDef = 0x08000000,
30 mdtInterfaceImpl = 0x09000000,
31 mdtMemberRef = 0x0a000000,
32 mdtCustomAttribute = 0x0c000000,
33 mdtPermission = 0x0e000000,
34 mdtSignature = 0x11000000,
35 mdtEvent = 0x14000000,
36 mdtProperty = 0x17000000,
37 mdtModuleRef = 0x1a000000,
38 mdtTypeSpec = 0x1b000000,
39 mdtAssembly = 0x20000000,
40 mdtAssemblyRef = 0x23000000,
41 mdtFile = 0x26000000,
42 mdtExportedType = 0x27000000,
43 mdtManifestResource = 0x28000000,
44 mdtGenericParam = 0x2a000000,
45 mdtMethodSpec = 0x2b000000,
46 mdtGenericParamConstraint = 0x2c000000,
47 mdtString = 0x70000000,
48 mdtName = 0x71000000,
49 mdtBaseType = 0x72000000,
CorTokenType
Definition: corhdr.h:23
@ mdtParamDef
Definition: corhdr.h:29
@ mdtCustomAttribute
Definition: corhdr.h:32
@ mdtString
Definition: corhdr.h:47
@ mdtMethodDef
Definition: corhdr.h:28
@ mdtMemberRef
Definition: corhdr.h:31
@ mdtEvent
Definition: corhdr.h:35
@ mdtTypeRef
Definition: corhdr.h:25
@ mdtFile
Definition: corhdr.h:41
@ mdtInterfaceImpl
Definition: corhdr.h:30
@ mdtGenericParamConstraint
Definition: corhdr.h:46
@ mdtMethodSpec
Definition: corhdr.h:45
@ mdtAssembly
Definition: corhdr.h:39
@ mdtAssemblyRef
Definition: corhdr.h:40
@ mdtManifestResource
Definition: corhdr.h:43
@ mdtExportedType
Definition: corhdr.h:42
@ mdtSignature
Definition: corhdr.h:34
@ mdtProperty
Definition: corhdr.h:36
@ mdtModuleRef
Definition: corhdr.h:37
@ mdtBaseType
Definition: corhdr.h:49
@ mdtTypeSpec
Definition: corhdr.h:38
@ mdtTypeDef
Definition: corhdr.h:26
@ mdtPermission
Definition: corhdr.h:33
@ mdtName
Definition: corhdr.h:48
@ mdtFieldDef
Definition: corhdr.h:27
@ mdtModule
Definition: corhdr.h:24
@ mdtGenericParam
Definition: corhdr.h:44