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..
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:
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