flat assembler
Message board for the users of flat assembler.

Index > Windows > PE Resources RAW

Author
Thread Post new topic Reply to topic
Kinex



Joined: 16 Jul 2004
Posts: 35
Kinex 06 Nov 2005, 17:31
Hi, I got a problem here I am trying to manage PE Resources and just want to know how I could wirte them in RAW format..! I have some info now but still I cannot get it to work properly. I know flatassembler has macros who just do a fine job but I need it that way.. I think its also very interesting!
I know there is a Resourceheader..

Code:
struct RESOURCEHEADER { 
    DWORD DataSize; 
    DWORD HeaderSize; 
    [Ordinal or name TYPE]; 
    [Ordinal or name NAME]; 
    DWORD DataVersion; 
    WORD MemoryFlags; 
    WORD LanguageId; 
    DWORD Version; 
    DWORD Characteristics; 
}; 
    


And documentation say that this header just repeats like an array for other directories and then they are followed by resource data.. so I think its like

for ROOT..

DWORD
DWORD
DWORD
WORD
WORD
DWORD

followed by

DWORD
DWORD
DWORD
WORD
WORD
DWORD

and followed by the resource!

Is that right?? because I simple cannot get it to work! It would be very nice if someone has some info for this.. what I'm trying exactly todo is this code:

Code:
       directory       RT_BITMAP, appBmp

       resource        appBmp,\
                       300,LANG_NEUTRAL,bmp1

       bitmap          bmp1, "C:\pic.bmp"     


just the RAW way..

can someone help me out??

Best Regards,
Kinex
Post 06 Nov 2005, 17:31
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 06 Nov 2005, 17:40
See my post in this thread: http://board.flatassembler.net/topic.php?t=1217 (and get fasm 1.07 package Wink)
Post 06 Nov 2005, 17:40
View user's profile Send private message Visit poster's website Reply with quote
Kinex



Joined: 16 Jul 2004
Posts: 35
Kinex 06 Nov 2005, 18:29
Thank you very much Tomasz! Exactly the info I was looking for! Just great Wink
Post 06 Nov 2005, 18:29
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.