PL_IMPORTS_INFO

    The PL_IMPORTS_INFO structure contains info about the Export Table (Export Directory).Could be used to update the Export Table.

PL_IMPORTS_INFO{
   DWORD    plAddrExportDir		
   DWORD    plSizeOfExportDir	
   DWORD    plBase		
   DWORD    plNumOfFunctions	
   DWORD    plNumOfNames		
   DWORD    plAddrOfFunctions	
   DWORD    plAddrOfNames		
   DWORD    plAddrOfOrdinals	
   DWORD    plPtrExportDir		
   DWORD    plPtrFunctions		
   DWORD    plPtrNames	
   DWORD    plPtrOrdinals		
};


Members

plImportDirRVA

   Contains the RVA of the Import Directory in the opened file.

 

plImportDirSize

    Contains the Import Directory's size.

 

plPtrImportDir

    Contains the the pointer to the Import Directory in the file.

 

plIATDirRVA

    Contains the RVA of the IAT in the opened file.

 

plIATDirSize

    Contains the IAT's size.

 

 plPtrIATDir

    Contains the the pointer to the IAT in the file.

Example use

 

.data?

    strucImportInfo PL_IMPORTS_INFO <>

 

.code

    invoke plGetPeInfo, NULL, NULL, addr strucImportInfo

   

    lea esi,offset strucImportInfo
    assume esi:ptr PL_IMPORTS_INFO

 

    inc [esi].plImportDirSize

    

    invoke plUpdatePEHeader, NULL, addr strucImportInfo

 

See Also

plUpdatePEHeader, plGetPeInfo

Pumqara <programs@mail.bg> 2004. All rights reserved.