plFindSection

The plFindSection function finds the number of a section from the section list in a PE File.Search is Case Sensitive.
plFindSection( LPTSTR plSectionName, // Address of buffer with the section name );
Parameters
plSectionName
Points to the buffer that containts the section name.This name will be used for the searching.NOTE: The name of the section string *must* be 8 bytes long! Take a look at the example.
Return Value
If the function succeeds, the return value is teh section number.
Example
.data strSectionName db ".code",0,0,0 .code invoke plFindSection, addr strSectionName |
See Also
plLocateMapOffset, plLocateOffset, plAddSection, plDeleteSection, plGetSectionInfo

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