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

ComHeaderDirectory Class Reference

Class that handles the COM+ descriptor directory. More...

#include <ComHeaderDirectory.h>

List of all members.

Public Member Functions

dword getCodeManagerTableSize () const
 Get the COM+ descriptor's CodeManagerTable (Size) value.

dword getCodeManagerTableVa () const
 Get the COM+ descriptor's CodeManagerTable (Virtual Address) value.

dword getEntryPointToken () const
 Get the COM+ descriptor's EntryPointToken value.

dword getExportAddressTableJumpsSize () const
 Get the COM+ descriptor's ExportAddressTable (Size) value.

dword getExportAddressTableJumpsVa () const
 Get the COM+ descriptor's ExportAddressTable (Virtual Address) value.

dword getFlags () const
 Get the COM+ descriptor's Flags value.

word getMajorRuntimeVersion () const
 Get the COM+ descriptor's MajorRuntimeVersion value.

dword getManagedNativeHeaderSize () const
 Get the COM+ descriptor's ManagedNativeHeader (Size) value.

dword getManagedNativeHeaderVa () const
 Get the COM+ descriptor's ManagedNativeHeader (Virtual Address) value.

dword getMetaDataSize () const
 Get the COM+ descriptor's MetaData (Size) value.

dword getMetaDataVa () const
 Get the COM+ descriptor's MetaData (Virtual Address) value.

word getMinorRuntimeVersion () const
 Get the COM+ descriptor's MinorRuntimeVersion value.

dword getResourcesSize ()
 Get the COM+ descriptor's Resources (Size) value.

dword getResourcesVa () const
 Get the COM+ descriptor's Resources (Virtual Address) value.

dword getSizeOfHeader () const
 Get the COM+ descriptor's SizeOfHeader (cb) value.

dword getStrongNameSignagureSize () const
 Get the COM+ descriptor's StrongNameSignature (Size) value.

dword getStrongNameSignatureVa () const
 Get the COM+ descriptor's StrongNameSignature (Virtual Address) value.

dword getVTableFixupsSize () const
 Get the COM+ descriptor's VTableFixup (Size) value.

dword getVTableFixupsVa () const
 Get the COM+ descriptor's VTableFixup (Virtual Address) value.

int read (const std::string &strFilename, unsigned int uiOffset, unsigned int uiSize)
 Read a file's COM+ runtime descriptor directory.

void rebuild (std::vector< byte > &vBuffer) const
 Rebuild the COM+ descriptor.

void setCodeManagerTableSize (dword dwValue)
 Change the COM+ descriptor's CodeManagerTable (Size) value.

void setCodeManagerTableVa (dword dwValue)
 Change the COM+ descriptor's CodeManagerTable (VirtualAddress) value.

void setEntryPointToken (dword dwValue)
 Change the COM+ descriptor's EntryPointToken value.

void setExportAddressTableJumpsSize (dword dwValue)
 Change the COM+ descriptor's ExportAddressTableJumps (Size) value.

void setExportAddressTableJumpsVa (dword dwValue)
 Change the COM+ descriptor's ExportAddressTableJumps (VirtualAddress) value.

void setFlags (dword dwValue)
 Change the COM+ descriptor's Flags value.

void setMajorRuntimeVersion (word wValue)
 Change the COM+ descriptor's MajorRuntimeVersion value.

void setManagedNativeHeaderSize (dword dwValue)
 Change the COM+ descriptor's ManagedNativeHeader (Size) value.

void setManagedNativeHeaderVa (dword dwValue)
 Change the COM+ descriptor's ManagedNativeHeader (VirtualAddress) value.

void setMetaDataSize (dword dwValue)
 Change the COM+ descriptor's MetaData (Size) value.

void setMetaDataVa (dword dwValue)
 Change the COM+ descriptor's MetaData (VirtualAddress) value.

void setMinorRuntimeVersion (word wValue)
 Change the COM+ descriptor's MinorRuntimeVersion value.

void setResourcesSize (dword dwValue)
 Change the COM+ descriptor's Resources (Size) value.

void setResourcesVa (dword dwValue)
 Change the COM+ descriptor's Resources (VirtualAddress) value.

void setSizeOfHeader (dword dwValue)
 Change the COM+ descriptor's SizeOfHeader (cb) value.

void setStrongNameSignagureSize (dword dwValue)
 Change the COM+ descriptor's StrongNameSignatureVa (Size) value.

void setStrongNameSignatureVa (dword dwValue)
 Change the COM+ descriptor's StrongNameSignatureVa (VirtualAddress) value.

void setVTableFixupsSize (dword dwValue)
 Change the COM+ descriptor's VTableFixups (Size) value.

void setVTableFixupsVa (dword dwValue)
 Change the COM+ descriptor's VTableFixups (VirtualAddress) value.

unsigned int size () const
 Returns the size of the current COM+ descriptor.

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


Private Attributes

PELIB_IMAGE_COR20_HEADER m_ichComHeader
 The COM+ descriptor.


Detailed Description

Class that handles the COM+ descriptor directory.

This class handles the COM+ Descriptor directory which was added to PE files which work with the .NET runtime modules.


Member Function Documentation

dword getCodeManagerTableSize  )  const
 

Get the COM+ descriptor's CodeManagerTable (Size) value.

Returns:
CodeManagerTable (Size) value of the current COM+ descriptor.

dword getCodeManagerTableVa  )  const
 

Get the COM+ descriptor's CodeManagerTable (Virtual Address) value.

Returns:
CodeManagerTable (Virtual Address) value of the current COM+ descriptor.

dword getEntryPointToken  )  const
 

Get the COM+ descriptor's EntryPointToken value.

Returns:
EntryPointToken value of the current COM+ descriptor.

dword getExportAddressTableJumpsSize  )  const
 

Get the COM+ descriptor's ExportAddressTable (Size) value.

Returns:
ExportAddressTableJumps (Size) value of the current COM+ descriptor.

dword getExportAddressTableJumpsVa  )  const
 

Get the COM+ descriptor's ExportAddressTable (Virtual Address) value.

Returns:
ExportAddressTableJumps (Virtual Address) value of the current COM+ descriptor.

dword getFlags  )  const
 

Get the COM+ descriptor's Flags value.

Returns:
Flags value of the current COM+ descriptor.

word getMajorRuntimeVersion  )  const
 

Get the COM+ descriptor's MajorRuntimeVersion value.

Returns:
MajorRuntimeVersion value of the current COM+ descriptor.

dword getManagedNativeHeaderSize  )  const
 

Get the COM+ descriptor's ManagedNativeHeader (Size) value.

Returns:
ManagedNativeHeader (Size) value of the current COM+ descriptor.

dword getManagedNativeHeaderVa  )  const
 

Get the COM+ descriptor's ManagedNativeHeader (Virtual Address) value.

Returns:
ManagedNativeHeader (Virtual Address) value of the current COM+ descriptor.

dword getMetaDataSize  )  const
 

Get the COM+ descriptor's MetaData (Size) value.

Returns:
MetaData (Size) value of the current COM+ descriptor.

dword getMetaDataVa  )  const
 

Get the COM+ descriptor's MetaData (Virtual Address) value.

Returns:
MetaData (Virtual Address) value of the current COM+ descriptor.

word getMinorRuntimeVersion  )  const
 

Get the COM+ descriptor's MinorRuntimeVersion value.

Returns:
MinorRuntimeVersion value of the current COM+ descriptor.

dword getResourcesSize  ) 
 

Get the COM+ descriptor's Resources (Size) value.

Returns:
Resources (Size) value of the current COM+ descriptor.

dword getResourcesVa  )  const
 

Get the COM+ descriptor's Resources (Virtual Address) value.

Returns:
Resources (Virtual Address) value of the current COM+ descriptor.

dword getSizeOfHeader  )  const
 

Get the COM+ descriptor's SizeOfHeader (cb) value.

Returns:
SizeOfHeader value of the current COM+ descriptor.

dword getStrongNameSignagureSize  )  const
 

Get the COM+ descriptor's StrongNameSignature (Size) value.

Returns:
StrongNameSignature (Size) value of the current COM+ descriptor.

dword getStrongNameSignatureVa  )  const
 

Get the COM+ descriptor's StrongNameSignature (Virtual Address) value.

Returns:
StrongNameSignature (Virtual Address) value of the current COM+ descriptor.

dword getVTableFixupsSize  )  const
 

Get the COM+ descriptor's VTableFixup (Size) value.

Returns:
VTableFixups (Size) value of the current COM+ descriptor.

dword getVTableFixupsVa  )  const
 

Get the COM+ descriptor's VTableFixup (Virtual Address) value.

Returns:
VTableFixups (Virtual Address) value of the current COM+ descriptor.

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

Read a file's COM+ runtime descriptor directory.

Reads a file's COM+ descriptor.

Parameters:
strFilename Name of the file.
uiOffset File offset of the COM+ descriptor.
uiSize Size of the COM+ descriptor.

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

Rebuild the COM+ descriptor.

Rebuilds the current COM+ descriptor.

Parameters:
vBuffer Buffer where the COM+ descriptor will be written to.

void setCodeManagerTableSize dword  dwValue  ) 
 

Change the COM+ descriptor's CodeManagerTable (Size) value.

Parameters:
dwValue New value for the current CodeManagerTable (Size) value.

void setCodeManagerTableVa dword  dwValue  ) 
 

Change the COM+ descriptor's CodeManagerTable (VirtualAddress) value.

Parameters:
dwValue New value for the current CodeManagerTable (VirtualAddress) value.

void setEntryPointToken dword  dwValue  ) 
 

Change the COM+ descriptor's EntryPointToken value.

Parameters:
dwValue New value for the current EntryPointToken value.

void setExportAddressTableJumpsSize dword  dwValue  ) 
 

Change the COM+ descriptor's ExportAddressTableJumps (Size) value.

Parameters:
dwValue New value for the current ExportAddressTableJumps (Size) value.

void setExportAddressTableJumpsVa dword  dwValue  ) 
 

Change the COM+ descriptor's ExportAddressTableJumps (VirtualAddress) value.

Parameters:
dwValue New value for the current ExportAddressTableJumps (VirtualAddress) value.

void setFlags dword  dwValue  ) 
 

Change the COM+ descriptor's Flags value.

Parameters:
dwValue New value for the current Flags value.

void setMajorRuntimeVersion word  wValue  ) 
 

Change the COM+ descriptor's MajorRuntimeVersion value.

Parameters:
wValue New value for the current MajorRuntimeVersion value.

void setManagedNativeHeaderSize dword  dwValue  ) 
 

Change the COM+ descriptor's ManagedNativeHeader (Size) value.

Parameters:
dwValue New value for the current ManagedNativeHeader (Size) value.

void setManagedNativeHeaderVa dword  dwValue  ) 
 

Change the COM+ descriptor's ManagedNativeHeader (VirtualAddress) value.

Parameters:
dwValue New value for the current ManagedNativeHeader (VirtualAddress) value.

void setMetaDataSize dword  dwValue  ) 
 

Change the COM+ descriptor's MetaData (Size) value.

Parameters:
dwValue New value for the current MetaData (Size) value.

void setMetaDataVa dword  dwValue  ) 
 

Change the COM+ descriptor's MetaData (VirtualAddress) value.

Parameters:
dwValue New value for the current MetaData (VirtualAddress) value.

void setMinorRuntimeVersion word  wValue  ) 
 

Change the COM+ descriptor's MinorRuntimeVersion value.

Parameters:
wValue New value for the current MinorRuntimeVersion value.

void setResourcesSize dword  dwValue  ) 
 

Change the COM+ descriptor's Resources (Size) value.

Parameters:
dwValue New value for the current Resources (Size) value.

void setResourcesVa dword  dwValue  ) 
 

Change the COM+ descriptor's Resources (VirtualAddress) value.

Parameters:
dwValue New value for the current Resources (VirtualAddress) value.

void setSizeOfHeader dword  dwValue  ) 
 

Change the COM+ descriptor's SizeOfHeader (cb) value.

Parameters:
dwValue New value for the current SizeOfHeader (cb) value.

void setStrongNameSignagureSize dword  dwValue  ) 
 

Change the COM+ descriptor's StrongNameSignatureVa (Size) value.

Parameters:
dwValue New value for the current StrongNameSignature (Size) value.

void setStrongNameSignatureVa dword  dwValue  ) 
 

Change the COM+ descriptor's StrongNameSignatureVa (VirtualAddress) value.

Parameters:
dwValue New value for the current StrongNameSignature (VirtualAddress) value.

void setVTableFixupsSize dword  dwValue  ) 
 

Change the COM+ descriptor's VTableFixups (Size) value.

Parameters:
dwValue New value for the current VTableFixups (Size) value.

void setVTableFixupsVa dword  dwValue  ) 
 

Change the COM+ descriptor's VTableFixups (VirtualAddress) value.

Parameters:
dwValue New value for the current VTableFixups (VirtualAddress) value.

unsigned int size  )  const
 

Returns the size of the current COM+ descriptor.

Returns:
Size in bytes.

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

Writes the current COM+ descriptor directory to a file.

Parameters:
strFilename Name of the file.
dwOffset File offset the COM+ descriptor will be written to.

Here is the call graph for this function:


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