Results 1 to 2 of 2

Thread: PE - Resource Directories

  1. #1

    PE - Resource Directories

    hi there, i've been trying for the past 3 days to get it right, if anyone can help or if you have a snippet or class that can do what i need, it would be very helpful, basically i need to output a resource directory

    Code:
      TImageResourceDirectory = packed record
        Characteristics: DWord;
        TimeDateStamp: DWord;
        MajorVersion: Word;
        MinorVersion: Word;
        NumberOfNamedEntries: Word;
        NumberOfIdEntries: Word;
      end;
    
      TImageResourceDirectoryEntry = packed record
        NameRVAorID     : DWord;    //The address of a string that gives the Type, Name, or Language ID entry, depending on level of table.
                                    //A 32-bit integer that identifies the Type, Name, or Language ID entry.
        OffsetRVA       : DWord;    //High bit 0. Address of a Resource Data entry (a leaf).
                                    //High bit 1. The lower 31 bits are the address of another resource directory table (the next level down).
      end;
    
      TImageResourceDataEntry = packed record
        OffsetToData: DWORD;
        Size: DWORD;
        CodePage: DWORD;
        Reserved: DWORD;
      end;
    http://msdn.microsoft.com/en-us/magazine/ms809762.aspx

    i have used this for reference, but it does not have alot of information, i also am using the PE spec file rev 8.2 but still with no luck, please help. thanks in advance.


    EDIT:

    never mind i solved my problem.
    Last edited by Colin; 05-04-2011 at 11:45 PM. Reason: solved the problem

  2. #2
    So how did you solve your problem? It may help other users

    cheers,
    Paul
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •