-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathRTTI.h
More file actions
57 lines (47 loc) · 1.23 KB
/
RTTI.h
File metadata and controls
57 lines (47 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <Windows.h>
/*
Some of these are currently unused
But I hope to use them in the future
For Inheritance features
*/
//It is a good as a reference too.
#ifndef RTTI_H
#define RTTI_H
typedef struct _S__TypeDescriptor
{
uintptr_t pVFTable;
uintptr_t spare; //Unused
char name;
} TypeDescriptor;
typedef struct _S__PMD
{
ptrdiff_t mdisp;
ptrdiff_t pdisp;
ptrdiff_t vdisp;
} PMD;
typedef struct _RTTIBaseClassDescriptor {
TypeDescriptor* pTypeDescriptor;
unsigned long numContainedBases;
PMD where;
unsigned long attributes;
} RTTIBaseClassDescriptor;
#pragma warning (disable:4200)
typedef struct _RTTIBaseClassArray {
RTTIBaseClassDescriptor* arrayOfBaseClassDescriptors[];
} RTTIBaseClassArray;
#pragma warning (default:4200)
typedef struct _RTTIClassHierarchyDescriptor {
unsigned long signature;
unsigned long attributes;
unsigned long numBaseClasses;
RTTIBaseClassArray* pBaseClassArray;
} RTTIClassHierarchyDescriptor;
typedef struct _RTTICompleteObjectLocator {
unsigned long signature;
unsigned long offset;
unsigned long cdOffset;
TypeDescriptor* pTypeDescriptor;
RTTIClassHierarchyDescriptor* pClassDescriptor;
} RTTICompleteObjectLocator;
#endif