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 "base/basictypes.h"
21 : #include "syzygy/common/assertions.h"
22 : #include "syzygy/msf/msf_constants.h"
23 :
24 m : namespace msf {
25 :
26 : // Multi-Stream Format (MSF) Header
27 : // See http://code.google.com/p/pdbparser/wiki/MSF_Format
28 m : struct MsfHeader {
29 m : uint8 magic_string[kMsfHeaderMagicStringSize];
30 m : uint32 page_size;
31 m : uint32 free_page_map;
32 m : uint32 num_pages;
33 m : uint32 directory_size;
34 m : uint32 reserved;
35 m : uint32 root_pages[kMsfMaxDirPages];
36 m : };
37 m : COMPILE_ASSERT_IS_POD_OF_SIZE(MsfHeader, 344);
38 :
39 m : } // namespace msf
40 :
41 : #endif // SYZYGY_MSF_MSF_DATA_H_
|