1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4//*****************************************************************************
5// MDCommon.h
6//
7// Common header file for both MD and COMPLIB subdirectories
8//
9//*****************************************************************************
10
11#ifndef __MDCommon_h__
12#define __MDCommon_h__
13
14// File types for the database.
15enum FILETYPE
16{
17 FILETYPE_UNKNOWN, // Unknown or undefined type.
18 FILETYPE_CLB, // Native .clb file format.
19 FILETYPE_CLX, // An obsolete file format.
20 FILETYPE_NTPE, // Windows PE executable.
21 FILETYPE_NTOBJ, // .obj file format (with .clb embedded).
22 FILETYPE_TLB // Typelib format.
23};
24
25enum MAPPINGTYPE
26{
27 MTYPE_NOMAPPING, // No mapped file
28 MTYPE_FLAT, // Mapped as a flat file
29 MTYPE_IMAGE // Mapped with the SEC_IMAGE flag
30};
31
32
33#define SCHEMA_STREAM_A "#Schema"
34#define STRING_POOL_STREAM_A "#Strings"
35#define BLOB_POOL_STREAM_A "#Blob"
36#define US_BLOB_POOL_STREAM_A "#US"
37#define GUID_POOL_STREAM_A "#GUID"
38#define COMPRESSED_MODEL_STREAM_A "#~"
39#define ENC_MODEL_STREAM_A "#-"
40#define MINIMAL_MD_STREAM_A "#JTD"
41#define HOT_MODEL_STREAM_A "#!"
42
43
44#define SCHEMA_STREAM W("#Schema")
45#define STRING_POOL_STREAM W("#Strings")
46#define BLOB_POOL_STREAM W("#Blob")
47#define US_BLOB_POOL_STREAM W("#US")
48#define GUID_POOL_STREAM W("#GUID")
49#define COMPRESSED_MODEL_STREAM W("#~")
50#define ENC_MODEL_STREAM W("#-")
51#define MINIMAL_MD_STREAM W("#JTD")
52#define HOT_MODEL_STREAM W("#!")
53
54#endif // __MDCommon_h__
55