ReactOS  0.4.15-dev-1070-ge1a01de
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 
22 typedef 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,
50 } CorTokenType;
51 
52 typedef 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 
101 typedef LPVOID mdScope;
102 typedef ULONG32 mdToken;
103 
115 typedef mdToken mdEvent;
120 typedef mdToken mdFile;
129 
130 #endif /* __WINE_CORHDR_H */
mdToken mdGenericParam
Definition: corhdr.h:124
Definition: corhdr.h:41
mdToken mdSignature
Definition: corhdr.h:114
mdToken mdProperty
Definition: corhdr.h:116
unsigned int ULONG32
Definition: basetsd.h:125
Definition: corhdr.h:48
mdToken mdTypeDef
Definition: corhdr.h:106
mdToken mdModule
Definition: corhdr.h:104
mdToken mdMethodSpec
Definition: corhdr.h:125
mdToken mdModuleRef
Definition: corhdr.h:117
mdToken mdFieldDef
Definition: corhdr.h:107
mdToken mdTypeRef
Definition: corhdr.h:105
mdToken mdPermission
Definition: corhdr.h:113
mdToken mdTypeSpec
Definition: corhdr.h:123
mdToken mdCustomAttribute
Definition: corhdr.h:112
CorTokenType
Definition: corhdr.h:22
mdToken mdString
Definition: corhdr.h:127
mdToken mdManifestResource
Definition: corhdr.h:122
ULONG32 mdToken
Definition: corhdr.h:102
mdToken mdCPToken
Definition: corhdr.h:128
mdToken mdMemberRef
Definition: corhdr.h:111
mdToken mdAssemblyRef
Definition: corhdr.h:119
mdToken mdMethodDef
Definition: corhdr.h:108
CorElementType
Definition: corhdr.h:52
mdToken mdParamDef
Definition: corhdr.h:109
mdToken mdGenericParamConstraint
Definition: corhdr.h:126
mdToken mdAssembly
Definition: corhdr.h:118
UINT32 mdToken
Definition: cordebug.idl:71
LPVOID mdScope
Definition: corhdr.h:101
mdToken mdEvent
Definition: corhdr.h:115
mdToken mdInterfaceImpl
Definition: corhdr.h:110
mdToken mdExportedType
Definition: corhdr.h:121
mdToken mdFile
Definition: corhdr.h:120