PL_IMPORTS_INFO

    The PL_IMPORTS_INFO structure contains info about the Imports Table (Import Directory) and the IAT.Could be used to update the Import Table.

PL_IMPORTS_INFO{
   DWORD    plImportDirRVA
   DWORD    plImportDirSize
   DWORD    plPtrImportDir
   DWORD    plIATDirRVA
   DWORD    plIATDirSize
   DWORD    plPtrIATDir
};


Members

plImportDirRVA

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

 

plImportDirSize

    Contains the Import Directory's size.

 

plPtrImportDir

    Contains 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 pointer to the IAT in the file.

 

Remarks

    

    When you are using plUpdateImportsInfo the following parameters will not be used by the library during the update process: plPtrImportDir, plPtrIATDir.

Example use

 

.data?

    strucImportInfo PL_IMPORTS_INFO <>

 

.code

    invoke plGetImportsInfo, addr strucImportInfo

   

    lea esi,offset strucImportInfo
    assume esi:ptr PL_IMPORTS_INFO

 

    inc [esi].plImportDirSize

    

    invoke plUpdateImportsInfo,  addr strucImportInfo

 

See Also

plGetImportsInfo, plUpdateImportsInfo, plEnumImportFunctions

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