// The first byte of the index is the count of bytes
typedef unsigned char SYMBOL_INDEX;
-#define RUNTIME_INFO_SIGNATURE "DotNetRuntimeInfo"
+#define RUNTIME_INFO_SIGNATURE "DotNetRuntimeInfo"
+#define RUNTIME_INFO_VERSION 2
// Make sure that if you update this structure
// - You do so in a in a way that it is backwards compatible. For example, only tail append to this.
typedef struct _RuntimeInfo
{
const char Signature[18];
- int Version;
+ const int Version;
const SYMBOL_INDEX RuntimeModuleIndex[24];
const SYMBOL_INDEX DacModuleIndex[24];
const SYMBOL_INDEX DbiModuleIndex[24];
+ const int RuntimeVersion[4]; // major, minor, build, revision
} RuntimeInfo;
extern RuntimeInfo DotNetRuntimeInfo;
#include <windows.h>
#include <runtimeinfo.h>
+#include <runtime_version.h>
// Runtime information public export
#ifdef HOST_UNIX
{
RUNTIME_INFO_SIGNATURE
},
- 1,
+ RUNTIME_INFO_VERSION,
{
#include <runtimemoduleindex.h>
},
{
#include <dbimoduleindex.h>
},
+ {
+ RuntimeFileMajorVersion, RuntimeFileMinorVersion, RuntimeFileBuildVersion, RuntimeFileRevisionVersion
+ },
};