ReactOS 0.4.15-dev-8413-gc1c91f2
corhdr.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 James Hawkins
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __WINE_CORHDR_H
20#define __WINE_CORHDR_H
21
22typedef enum CorTokenType
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,
47 mdtString = 0x70000000,
48 mdtName = 0x71000000,
49 mdtBaseType = 0x72000000,
51
52typedef enum CorElementType
53{
92
94
95#define RidToToken(rid,tktype) ((rid) |= (tktype))
96#define TokenFromRid(rid,tktype) ((rid) | (tktype))
97#define RidFromToken(tk) ((RID)((tk) & 0x00ffffff))
98#define TypeFromToken(tk) ((ULONG32)((tk) & 0xff000000))
99#define IsNilToken(tk) ((RidFromToken(tk)) == 0)
100
103
129
130#endif /* __WINE_CORHDR_H */
unsigned int ULONG32
Definition: basetsd.h:123
UINT32 mdToken
Definition: cordebug.idl:71
mdToken mdFile
Definition: corhdr.h:120
mdToken mdCPToken
Definition: corhdr.h:128
mdToken mdMethodDef
Definition: corhdr.h:108
mdToken mdTypeRef
Definition: corhdr.h:105
mdToken mdCustomAttribute
Definition: corhdr.h:112
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
mdToken mdGenericParam
Definition: corhdr.h:124
mdToken mdInterfaceImpl
Definition: corhdr.h:110
mdToken mdEvent
Definition: corhdr.h:115
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
mdToken mdGenericParamConstraint
Definition: corhdr.h:126
LPVOID mdScope
Definition: corhdr.h:101
mdToken mdSignature
Definition: corhdr.h:114
mdToken mdString
Definition: corhdr.h:127
ULONG32 mdToken
Definition: corhdr.h:102
mdToken mdFieldDef
Definition: corhdr.h:107
mdToken mdModuleRef
Definition: corhdr.h:117
mdToken mdPermission
Definition: corhdr.h:113
mdToken mdAssemblyRef
Definition: corhdr.h:119
mdToken mdProperty
Definition: corhdr.h:116
mdToken mdExportedType
Definition: corhdr.h:121
mdToken mdAssembly
Definition: corhdr.h:118
mdToken mdMethodSpec
Definition: corhdr.h:125
mdToken mdParamDef
Definition: corhdr.h:109
mdToken mdTypeDef
Definition: corhdr.h:106
mdToken mdMemberRef
Definition: corhdr.h:111
mdToken mdModule
Definition: corhdr.h:104
mdToken mdTypeSpec
Definition: corhdr.h:123
mdToken mdManifestResource
Definition: corhdr.h:122