diff options
Diffstat (limited to 'src/ToolBox/SOS/Strike/data.h')
-rw-r--r-- | src/ToolBox/SOS/Strike/data.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/ToolBox/SOS/Strike/data.h b/src/ToolBox/SOS/Strike/data.h new file mode 100644 index 0000000000..78a1e9b698 --- /dev/null +++ b/src/ToolBox/SOS/Strike/data.h @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +// ==++== +// + +// +// ==--== +#ifndef __data_h__ +#define __data_h__ + +#include "cor.h" +#include "corhdr.h" +#include "cor.h" +#include "dacprivate.h" + +BOOL FileExist (const char *filename); +BOOL FileExist (const WCHAR *filename); + +// We use global variables +// because move returns void if it fails +//typedef DWORD DWORD_PTR; +//typedef ULONG ULONG_PTR; + +// Max length in WCHAR for a buffer to store metadata name +const int mdNameLen = 2048; +extern WCHAR g_mdName[mdNameLen]; + +const int nMDIMPORT = 128; +struct MDIMPORT +{ + enum MDType {InMemory, InFile, Dynamic}; + WCHAR *name; + size_t base; // base of the PE module + size_t mdBase; // base of the metadata + char *metaData; + ULONG metaDataSize; + MDType type; + IMetaDataImport *pImport; + + MDIMPORT *left; + MDIMPORT *right; +}; + +class Module; + +extern "C" BOOL ControlC; +extern IMetaDataDispenserEx *pDisp; + +#endif // __data_h__ |