1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 15 unchanged lines hidden (view full) ---
24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/compat/ndis/pe_var.h 144888 2005-04-11 02:02:35Z wpaul $
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */
--- 168 unchanged lines hidden (view full) ---
209struct image_nt_header {
210 uint32_t inh_signature;
211 image_file_header inh_filehdr;
212 image_optional_header inh_optionalhdr;
213};
214
215typedef struct image_nt_header image_nt_header;
216
217/* Directory Entries */
218
219#define IMAGE_DIRECTORY_ENTRY_EXPORT 0 /* Export Directory */
220#define IMAGE_DIRECTORY_ENTRY_IMPORT 1 /* Import Directory */
221#define IMAGE_DIRECTORY_ENTRY_RESOURCE 2 /* Resource Directory */
222#define IMAGE_DIRECTORY_ENTRY_EXCEPTION 3 /* Exception Directory */
223#define IMAGE_DIRECTORY_ENTRY_SECURITY 4 /* Security Directory */
224#define IMAGE_DIRECTORY_ENTRY_BASERELOC 5 /* Base Relocation Table */
--- 51 unchanged lines hidden (view full) ---
276 uint16_t ish_numlinenums;
277 uint32_t ish_characteristics;
278};
279
280typedef struct image_section_header image_section_header;
281
282#define IMAGE_SIZEOF_SECTION_HEADER 40
283
284/*
285 * Import format
286 */
287
288struct image_import_by_name {
289 uint16_t iibn_hint;
290 uint8_t iibn_name[1];
291};
--- 249 unchanged lines hidden ---
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 15 unchanged lines hidden (view full) ---
24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/compat/ndis/pe_var.h 144888 2005-04-11 02:02:35Z wpaul $
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */
--- 168 unchanged lines hidden (view full) ---
209struct image_nt_header {
210 uint32_t inh_signature;
211 image_file_header inh_filehdr;
212 image_optional_header inh_optionalhdr;
213};
214
215typedef struct image_nt_header image_nt_header;
216
217/* Directory Entries */
218
219#define IMAGE_DIRECTORY_ENTRY_EXPORT 0 /* Export Directory */
220#define IMAGE_DIRECTORY_ENTRY_IMPORT 1 /* Import Directory */
221#define IMAGE_DIRECTORY_ENTRY_RESOURCE 2 /* Resource Directory */
222#define IMAGE_DIRECTORY_ENTRY_EXCEPTION 3 /* Exception Directory */
223#define IMAGE_DIRECTORY_ENTRY_SECURITY 4 /* Security Directory */
224#define IMAGE_DIRECTORY_ENTRY_BASERELOC 5 /* Base Relocation Table */
--- 51 unchanged lines hidden (view full) ---
276 uint16_t ish_numlinenums;
277 uint32_t ish_characteristics;
278};
279
280typedef struct image_section_header image_section_header;
281
282#define IMAGE_SIZEOF_SECTION_HEADER 40
283
284/*
285 * Import format
286 */
287
288struct image_import_by_name {
289 uint16_t iibn_hint;
290 uint8_t iibn_name[1];
291};
--- 249 unchanged lines hidden ---