Package pype32 :: Module pype32 :: Class NtHeaders |
[hide private]
[frames] | no frames]

# Class NtHeaders

source code

                     object --+
                              |
    baseclasses.BaseStructClass --+
                                  |
                                 NtHeaders

NtHeaders object.

Instance Methods | [hide private]
__init__(self, shouldPack=True) Class representation of the `IMAGE_NT_HEADERS` structure. | source code
__str__(self) str(x) | source code
getType(self) Returns consts.IMAGE_NT_HEADERS. | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`
Inherited from baseclasses.BaseStructClass
__len__(self) | source code
dict |
getFields(self) Returns all the class attributues. | source code
sizeof(self) | source code

Static Methods | [hide private]
NtHeaders |
parse(readDataInstance) Returns a new NtHeaders object. | source code

Instance Variables | [hide private]
| signature DWORD signature.
| fileHeader FileHeader fileHeader.
| optionalHeader OptionalHeader optionalHeader.

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, shouldPack=True) (Constructor) | source code
Class representation of the `IMAGE_NT_HEADERS` structure. Parameters: `shouldPack` (bool) - (Optional) If set to `True`, the object will be packed. If set to `False`, the object won't be packed. Overrides: object.__init__ See Also: http://msdn.microsoft.com/es-es/library/windows/desktop/ms680336%28v=vs.85%29.aspx

### __str__(self) (Informal representation operator) | source code
str(x) Overrides: object.__str__ (inherited documentation)

### parse(readDataInstance) Static Method | source code
Returns a new NtHeaders object. Parameters: `readDataInstance` (ReadData) - A ReadData object with data to be parsed as a NtHeaders object. Returns: NtHeaders A new NtHeaders object.

### getType(self) | source code
Returns consts.IMAGE_NT_HEADERS. Raises: `NotImplementedError` - The method wasn't implemented in the inherited class. Overrides: baseclasses.BaseStructClass.getType