1 : // Copyright 2015 Google Inc. All Rights Reserved.
2 : //
3 : // Licensed under the Apache License, Version 2.0 (the "License");
4 : // you may not use this file except in compliance with the License.
5 : // You may obtain a copy of the License at
6 : //
7 : // http://www.apache.org/licenses/LICENSE-2.0
8 : //
9 : // Unless required by applicable law or agreed to in writing, software
10 : // distributed under the License is distributed on an "AS IS" BASIS,
11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 : // See the License for the specific language governing permissions and
13 : // limitations under the License.
14 :
15 : #ifndef SYZYGY_MSF_MSF_DATA_H_
16 : #define SYZYGY_MSF_MSF_DATA_H_
17 :
18 : #include <windows.h>
19 :
20 : #include "syzygy/common/assertions.h"
21 : #include "syzygy/msf/msf_constants.h"
22 :
23 m : namespace msf {
24 :
25 : // Multi-Stream Format (MSF) Header
26 : // See http://code.google.com/p/pdbparser/wiki/MSF_Format
27 m : struct MsfHeader {
28 m : uint8_t magic_string[kMsfHeaderMagicStringSize];
29 m : uint32_t page_size;
30 m : uint32_t free_page_map;
31 m : uint32_t num_pages;
32 m : uint32_t directory_size;
33 m : uint32_t reserved;
34 m : uint32_t root_pages[kMsfMaxDirPages];
35 m : };
36 m : COMPILE_ASSERT_IS_POD_OF_SIZE(MsfHeader, 344);
37 :
38 m : } // namespace msf
39 :
40 : #endif // SYZYGY_MSF_MSF_DATA_H_
|