flat assembler
Message board for the users of flat assembler.

Index > Windows > smallest flexible PE

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 16 Apr 2007, 22:22
Just keep in mind you lose win2k functionality if you don't end up importing from kernel32.dll.
Post 16 Apr 2007, 22:22
View user's profile Send private message Visit poster's website Reply with quote
hidden



Joined: 14 Feb 2007
Posts: 49
hidden 16 Apr 2007, 22:49
Quote:
Just keep in mind you lose win2k functionality if you don't end up importing from kernel32.dll.
What do you mean? I don't even use kernel32.dll, because I don't use ExitProcess, I use only user32.dll to import MessageBoxA
Post 16 Apr 2007, 22:49
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 16 Apr 2007, 23:07
He means that even creating a perfect PE executable with no specs violations/abuses it will not work on Win2K if you don't have kernel32.dll in the import table.
Post 16 Apr 2007, 23:07
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 17 Apr 2007, 08:18
Well, you don't need kernel32.dll in the import table, but you need to end up importing from it - ie by importing GDI32.DLL:Arc() (afaik that's the shortest non-ordinal import you can do).
Post 17 Apr 2007, 08:18
View user's profile Send private message Visit poster's website Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 17 Apr 2007, 08:21
hidden, doesn't work for me - win xp sp2 even after some corrections.
Code:
        user_table:  ;here
     MessageBox dd _MessageBox+0000h-2 
    

Code:
        import_directory: 
                dd 0,0,0,user_name 
                dd user_table  ;here
    

_________________
Any offers?
Post 17 Apr 2007, 08:21
View user's profile Send private message Reply with quote
hidden



Joined: 14 Feb 2007
Posts: 49
hidden 18 Apr 2007, 22:16
Code:
        user_table:  ;here I have missed 1 letter Smile
     MessageBox dd _MessageBox+0000h-2 
    

Code:
        import_directory: 
                dd 0,0,0,user_name 
                dd user_table  ;here is only one byte anyway, so can be "db"
    
but it works on my system "Microsoft Windows XP [Version 5.1.2600]" + SP2 + all updates

_________________
Image Lang: (eng|рус)
Post 18 Apr 2007, 22:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.