| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.PE.Structures
Synopsis
- data PEFile = PEFile {}
- data PEObject = PEObj {}
- data BinSection = BinSection {}
- data PEObjectHeader = PEObjHdr {}
- data PEHeader = PEHeader {}
- data MSDOSHeader = MSDOSHeader {
- signature :: Word16
- lastsize :: Word16
- pagesInFile :: Word16
- relocations :: Word16
- headerSizeInParagraph :: Word16
- minExtraParagraphs :: Word16
- maxExtraParagraphs :: Word16
- ss :: Word16
- sp :: Word16
- checksum :: Word16
- ip :: Word16
- cs :: Word16
- relocTableOffset :: Word16
- overlayNumber :: Word16
- oemIdentifier :: Word16
- oemInformation :: Word16
- offset :: Word32
- data PESignature = PESignature {}
- data COFFHeader = COFFHeader {}
- data StandardFields
- = StandardFields { }
- | SFPlus { }
- data WindowsSpecFields
- = WindowsSpecFields {
- imageBase :: Word32
- sectionAlignment :: Word32
- fileAlignment :: Word32
- majorOSVersion :: Word16
- minorOSVersion :: Word16
- majorImageVersion :: Word16
- minorImageVersion :: Word16
- majorSubSystemVersion :: Word16
- minorSubSystemVersion :: Word16
- win32VersionValue :: Word32
- sizeOfImage :: Word32
- sizeOfHeaders :: Word32
- checkSum32 :: Word32
- checkSum16 :: Word16
- dllCharacteristics :: Word16
- sizeOfStackReserve :: Word32
- sizeOfStackCommit :: Word32
- sizeOfHeapReserve :: Word32
- sizeOfHeapCommit :: Word32
- loaderFlags :: Word32
- numberOfRVAandSizes :: Word32
- | WSFPlus {
- imgBase :: Word64
- sectionAlignment :: Word32
- fileAlignment :: Word32
- majorOSVersion :: Word16
- minorOSVersion :: Word16
- majorImageVersion :: Word16
- minorImageVersion :: Word16
- majorSubSystemVersion :: Word16
- minorSubSystemVersion :: Word16
- win32VersionValue :: Word32
- sizeOfImage :: Word32
- sizeOfHeaders :: Word32
- checkSum32 :: Word32
- checkSum16 :: Word16
- dllCharacteristics :: Word16
- szOfStackReserve :: Word64
- szOfStackCommit :: Word64
- szOfHeapReserve :: Word64
- szOfHeapCommit :: Word64
- loaderFlags :: Word32
- numberOfRVAandSizes :: Word32
- = WindowsSpecFields {
- data DirectoryEntry = DirEntry {
- virtualAddr :: Word32
- entrySize :: Word32
- data SectionTable = SectionTable {}
- data MachineType
- mapMachine :: Word16 -> MachineType
- getAStr :: Get String
Documentation
The over-arching container. Holds the headers and a list of binary sections
Constructors
| PEObj | |
Fields | |
data BinSection Source #
The Binary Section container. Holds names and containers.
Constructors
| BinSection | |
Fields
| |
Instances
| Show BinSection Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> BinSection -> ShowS # show :: BinSection -> String # showList :: [BinSection] -> ShowS # | |
data PEObjectHeader Source #
Constructors
| PEObjHdr | |
Fields
| |
Instances
| Show PEObjectHeader Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> PEObjectHeader -> ShowS # show :: PEObjectHeader -> String # showList :: [PEObjectHeader] -> ShowS # | |
The Header section, holds entries for each header in the PE File
Constructors
| PEHeader | |
Fields | |
data MSDOSHeader Source #
Constructors
| MSDOSHeader | |
Fields
| |
Instances
| Show MSDOSHeader Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> MSDOSHeader -> ShowS # show :: MSDOSHeader -> String # showList :: [MSDOSHeader] -> ShowS # | |
data PESignature Source #
Constructors
| PESignature | |
Fields | |
Instances
| Show PESignature Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> PESignature -> ShowS # show :: PESignature -> String # showList :: [PESignature] -> ShowS # | |
data COFFHeader Source #
Constructors
| COFFHeader | |
Instances
| Show COFFHeader Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> COFFHeader -> ShowS # show :: COFFHeader -> String # showList :: [COFFHeader] -> ShowS # | |
data StandardFields Source #
Constructors
| StandardFields | |
Fields | |
| SFPlus | |
Fields | |
Instances
| Show StandardFields Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> StandardFields -> ShowS # show :: StandardFields -> String # showList :: [StandardFields] -> ShowS # | |
data WindowsSpecFields Source #
Constructors
Instances
| Show WindowsSpecFields Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> WindowsSpecFields -> ShowS # show :: WindowsSpecFields -> String # showList :: [WindowsSpecFields] -> ShowS # | |
data DirectoryEntry Source #
Constructors
| DirEntry | |
Fields
| |
Instances
| Show DirectoryEntry Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> DirectoryEntry -> ShowS # show :: DirectoryEntry -> String # showList :: [DirectoryEntry] -> ShowS # | |
| Binary DirectoryEntry Source # | |
Defined in Data.PE.Structures Methods put :: DirectoryEntry -> Put # get :: Get DirectoryEntry # putList :: [DirectoryEntry] -> Put # | |
data SectionTable Source #
Constructors
| SectionTable | |
Instances
| Show SectionTable Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> SectionTable -> ShowS # show :: SectionTable -> String # showList :: [SectionTable] -> ShowS # | |
| Binary SectionTable Source # | |
Defined in Data.PE.Structures | |
data MachineType Source #
Constructors
| UNKNOWN | |
| AM33 | |
| AMD64 | |
| ARM | |
| ARMV7 | |
| EBC | |
| I386 | |
| IA64 | |
| M32R | |
| MIPS16 | |
| MIPSFPU | |
| MIPSFPU16 | |
| PPC | |
| PPCFP | |
| R4000 | |
| SH3 | |
| SH3DSP | |
| SH4 | |
| SH5 | |
| THUMB | |
| WCE | |
| INVALID |
Instances
| Show MachineType Source # | |
Defined in Data.PE.Structures Methods showsPrec :: Int -> MachineType -> ShowS # show :: MachineType -> String # showList :: [MachineType] -> ShowS # | |
| Binary MachineType Source # | |
Defined in Data.PE.Structures | |
mapMachine :: Word16 -> MachineType Source #