Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

TlsDirectory Class Template Reference

Class that handles the TLS directory. More...

#include <TlsDirectory.h>

List of all members.

Public Member Functions

dword getAddressOfCallBacks () const
 Returns the AddressOfCallBacks value of the TLS header.

dword getAddressOfIndex () const
 Returns the AddressOfIndex value of the TLS header.

dword getCharacteristics () const
 Returns the Characteristics value of the TLS header.

dword getEndAddressOfRawData () const
 Returns the EndAddressOfRawData value of the TLS header.

dword getSizeOfZeroFill () const
 Returns the SizeOfZeroFill value of the TLS header.

dword getStartAddressOfRawData () const
 Returns the StartAddressOfRawData value of the TLS header.

int read (const std::string &strFilename, unsigned int uiOffset, unsigned int uiSize)
 Reads a file's TLS directory.

void rebuild (std::vector< byte > &vBuffer) const
 Rebuilds the TLS directory.

void setAddressOfCallBacks (dword dwValue)
 Sets the AddressOfCallBacks value of the TLS header.

void setAddressOfIndex (dword dwValue)
 Sets the AddressOfIndex value of the TLS header.

void setCharacteristics (dword dwValue)
 Sets the Characteristics value of the TLS header.

void setEndAddressOfRawData (dword dwValue)
 Sets the EndAddressOfRawData value of the TLS header.

void setSizeOfZeroFill (dword dwValue)
 Sets the SizeOfZeroFill value of the TLS header.

void setStartAddressOfRawData (dword dwValue)
 Sets the StartAddressOfRawData value of the TLS header.

unsigned int size () const
 Returns the size of the TLS Directory.

int write (const std::string &strFilename, unsigned int dwOffset) const
 Writes the TLS directory to a file.


Private Attributes

PELIB_IMAGE_TLS_DIRECTORY<
bits > 
m_tls
 Structure that holds all information about the directory.


Detailed Description

template<int bits>
class PeLib::TlsDirectory< bits >

Class that handles the TLS directory.

This class handles the TLS (Thread Local Storage) directory.


Member Function Documentation

dword getAddressOfCallBacks  )  const
 

Returns the AddressOfCallBacks value of the TLS header.

Returns:
The AddressOfCallBacks value of the TLS directory.

dword getAddressOfIndex  )  const
 

Returns the AddressOfIndex value of the TLS header.

Returns:
The AddressOfIndex value of the TLS directory.

dword getCharacteristics  )  const
 

Returns the Characteristics value of the TLS header.

Returns:
The Characteristics value of the TLS directory.

dword getEndAddressOfRawData  )  const
 

Returns the EndAddressOfRawData value of the TLS header.

Returns:
The EndAddressOfRawData value of the TLS directory.

dword getSizeOfZeroFill  )  const
 

Returns the SizeOfZeroFill value of the TLS header.

Returns:
The SizeOfZeroFill value of the TLS directory.

dword getStartAddressOfRawData  )  const
 

Returns the StartAddressOfRawData value of the TLS header.

Returns:
The StartAddressOfRawData value of the TLS directory.

int read const std::string &  strFilename,
unsigned int  uiOffset,
unsigned int  uiSize
 

Reads a file's TLS directory.

Reads a file's TLS directory.

Parameters:
strFilename Name of the file.
uiOffset File offset of the TLS directory.
uiSize Size of the TLS directory.

void rebuild std::vector< byte > &  vBuffer  )  const
 

Rebuilds the TLS directory.

Rebuilds the current TLS Directory.

Parameters:
vBuffer Buffer where the TLS directory will be written to.

void setAddressOfCallBacks dword  dwValue  ) 
 

Sets the AddressOfCallBacks value of the TLS header.

Parameters:
dwValue The new AddressOfCallBacks value of the TLS directory.

void setAddressOfIndex dword  dwValue  ) 
 

Sets the AddressOfIndex value of the TLS header.

Parameters:
dwValue The new AddressOfIndex value of the TLS directory.

void setCharacteristics dword  dwValue  ) 
 

Sets the Characteristics value of the TLS header.

Parameters:
dwValue The new Characteristics value of the TLS directory.

void setEndAddressOfRawData dword  dwValue  ) 
 

Sets the EndAddressOfRawData value of the TLS header.

Parameters:
dwValue The new EndAddressOfRawData value of the TLS directory.

void setSizeOfZeroFill dword  dwValue  ) 
 

Sets the SizeOfZeroFill value of the TLS header.

Parameters:
dwValue The new SizeOfZeroFill value of the TLS directory.

void setStartAddressOfRawData dword  dwValue  ) 
 

Sets the StartAddressOfRawData value of the TLS header.

Parameters:
dwValue The new StartAddressOfRawData value of the TLS directory.

unsigned int size  )  const
 

Returns the size of the TLS Directory.

Returns the size of the TLS directory. Due to the static nature of this structure the return value will always be 24.

Returns:
Size in bytes.

int write const std::string &  strFilename,
unsigned int  dwOffset
const
 

Writes the TLS directory to a file.

Parameters:
strFilename Name of the file.
dwOffset File offset the TLS Directory will be written to.


The documentation for this class was generated from the following file:
Generated on Mon Jan 17 20:50:21 2005 for PeLib by doxygen 1.3.7