Struct object::pe::ImageOs2Header

source ·
#[repr(C)]
pub struct ImageOs2Header {
Show 30 fields pub ne_magic: U16<LittleEndian>, pub ne_ver: i8, pub ne_rev: i8, pub ne_enttab: U16<LittleEndian>, pub ne_cbenttab: U16<LittleEndian>, pub ne_crc: I32<LittleEndian>, pub ne_flags: U16<LittleEndian>, pub ne_autodata: U16<LittleEndian>, pub ne_heap: U16<LittleEndian>, pub ne_stack: U16<LittleEndian>, pub ne_csip: I32<LittleEndian>, pub ne_sssp: I32<LittleEndian>, pub ne_cseg: U16<LittleEndian>, pub ne_cmod: U16<LittleEndian>, pub ne_cbnrestab: U16<LittleEndian>, pub ne_segtab: U16<LittleEndian>, pub ne_rsrctab: U16<LittleEndian>, pub ne_restab: U16<LittleEndian>, pub ne_modtab: U16<LittleEndian>, pub ne_imptab: U16<LittleEndian>, pub ne_nrestab: I32<LittleEndian>, pub ne_cmovent: U16<LittleEndian>, pub ne_align: U16<LittleEndian>, pub ne_cres: U16<LittleEndian>, pub ne_exetyp: u8, pub ne_flagsothers: u8, pub ne_pretthunks: U16<LittleEndian>, pub ne_psegrefbytes: U16<LittleEndian>, pub ne_swaparea: U16<LittleEndian>, pub ne_expver: U16<LittleEndian>,
}
Expand description

OS/2 .EXE header

Fields§

§ne_magic: U16<LittleEndian>

Magic number

§ne_ver: i8

Version number

§ne_rev: i8

Revision number

§ne_enttab: U16<LittleEndian>

Offset of Entry Table

§ne_cbenttab: U16<LittleEndian>

Number of bytes in Entry Table

§ne_crc: I32<LittleEndian>

Checksum of whole file

§ne_flags: U16<LittleEndian>

Flag word

§ne_autodata: U16<LittleEndian>

Automatic data segment number

§ne_heap: U16<LittleEndian>

Initial heap allocation

§ne_stack: U16<LittleEndian>

Initial stack allocation

§ne_csip: I32<LittleEndian>

Initial CS:IP setting

§ne_sssp: I32<LittleEndian>

Initial SS:SP setting

§ne_cseg: U16<LittleEndian>

Count of file segments

§ne_cmod: U16<LittleEndian>

Entries in Module Reference Table

§ne_cbnrestab: U16<LittleEndian>

Size of non-resident name table

§ne_segtab: U16<LittleEndian>

Offset of Segment Table

§ne_rsrctab: U16<LittleEndian>

Offset of Resource Table

§ne_restab: U16<LittleEndian>

Offset of resident name table

§ne_modtab: U16<LittleEndian>

Offset of Module Reference Table

§ne_imptab: U16<LittleEndian>

Offset of Imported Names Table

§ne_nrestab: I32<LittleEndian>

Offset of Non-resident Names Table

§ne_cmovent: U16<LittleEndian>

Count of movable entries

§ne_align: U16<LittleEndian>

Segment alignment shift count

§ne_cres: U16<LittleEndian>

Count of resource segments

§ne_exetyp: u8

Target Operating system

§ne_flagsothers: u8

Other .EXE flags

§ne_pretthunks: U16<LittleEndian>

offset to return thunks

§ne_psegrefbytes: U16<LittleEndian>

offset to segment ref. bytes

§ne_swaparea: U16<LittleEndian>

Minimum code swap area size

§ne_expver: U16<LittleEndian>

Expected Windows version number

Trait Implementations§

source§

impl Clone for ImageOs2Header

source§

fn clone(&self) -> ImageOs2Header

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ImageOs2Header

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for ImageOs2Header

source§

impl Pod for ImageOs2Header

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.