exe.dll v2.4 beta2
plugin for FAR

:  
23.12.2002

   ,   
 portable executable(exe,dll,ocx  ),  - 
-   ,    .

       .
      
  .

     e-mail:radik_h@yahoo.com

..     
    
far\plugins\Z.

  ,  
 ,    .
    
pe:somepe.exe

1. .
     .
pe:somepe.exe param1=2ff param2=3352312 Exit
    .
:
 
PE
Machine
NumberOfSections
TimeDateStamp
PointerToSymbolTable
NumberOfSymbols
SizeOfOptionalHeader
Characteristics

 
Magic
MajorLinkerVersion
MinorLinkerVersion
SizeOfCode
SizeOfInitializedData
SizeOfUninitializedData
AddressOfEntryPoint
BaseOfCode
BaseOfData
ImageBase
SectionAlignment
FileAlignment
MajorOperatingSystemVersion
MinorOperatingSystemVersion
MajorImageVersion
MinorImageVersion
MajorSubsystemVersion
MinorSubsystemVersion
Win32VersionValue
SizeOfImage
SizeOfHeaders
CheckSum
Interface
DllCharacteristics
SizeOfStackReserve
SizeOfStackCommit
SizeOfHeapReserve
SizeOfHeapCommit
LoaderFlags
NumberOfRvaAndSizes

   Exit -  ,    .

FileAlignment      
  .
  FileAlignment     .
   200h:
1)      12  
2)      0Ch
3)     200h;
4)  ,     
FileAlignment(    FileAlignment=1    )
      ;
5)     .

i.e.
pe:modplug.exe FileAlignment=1 Exit

        
 ,      dmp    
       - .

2. .
    dmp    .
         
  .     ,    
  .
    :
 .
 // 
 .
 DB  
 DW  
 DD  
.
     , 
    h  .
i.e.
DB   ca
     DF
DW   06666
     4EC
DD   dead10ad
     0
ASCII .
DB "   CP-1251" 
Unicode .
DW " Unicode"

     .
  \\  \
  \n    0ah
  \"  
.     .  .
Name_1	DB	ff

3..
    ,   .  ,
  40   ,     
4  ..  .      
 ,    .  
   .

4..
    -  ,
   .

Export
       ,  
   .    
.       
(     ).  , 
  ctrl+4(F9++).
i.e.
 exe.dll
GetStartupInfo.360014dd		12

     ,     .
         
      .   .
i.e.
SomeName.36001234
 SomeName.1234

        
.

Import
    .
      
        ,
       .  -  
    call [45f000](modplug.exe)   RegOpenKey 
advapi32.dll, :).
     ,  
, .
i.e.
PE:exe.dll\36000000\KERNEL32.dll
GetModuleHandleA.0000B000	294

  .
    ,     
  .     
 ,     
    .

  :
	)    Import.       ,
	        ,  
	    .
	)       Import.
	)     Export        
	Import.
	)           Import.
 ,   .

Resource
   .   
         
  .     .

  .    ,   
       t. 
     pL_Languages(Resource.h). 
      
ResName(Resource.h),  .

DelayImport.
      Import.  .

5..
       ,  
   .        
   ,   ,   
  :).
