Windows 32-Bit Binary Resource Files(res.rfh):
Class: Resource, Status: Headers only, Last change: 19.12.2007 20:56:54

type

DWORD ulong

TOrd struc
  word Mrk
  word Ord
ends:assert[@.Mrk=0xFFFF]

PWChar array of wchar ?@=0!Word;

TOrdOrName try
  Ord: TOrd
  Name: PWChar
endt

TResourceHeader struc
  DWORD     DataSize;           // Size of data without header
  DWORD     HeaderSize;         // Length of the additional header
  TOrdOrName TYP        // Type identifier, id or string
  TOrdOrName NAME        // Name identifier, id or string
  align 4 Al
  DWORD     DataVersion;        // Predefined resource data version
  WORD      MemoryFlags;        // State of the resource
  WORD      LanguageId;         // Unicode support for NLS
  DWORD     Version;            // Version of the resource data
  DWORD     Characteristics;    // Characteristics of the data
ends:[@:Size=@.HeaderSize]:displ=('[',HEX(&@),']:',@)

TResourceItem struc
  TResourceHeader Hdr
  raw[@.Hdr.DataSize] Data
  align 4 Al
ends

/*
TRes32Marker struc
  DWORD dwZ
  DWORD dw20
ends:assert[@.dwZ=0,@.dw20=0x20]
*/

data
//0 TRes32Marker Marker
0 TResourceHeader Hdr

assert (Hdr.DataSize=0)and(Hdr.HeaderSize=0x20);

descr ('Windows 32-Bit Binary Resource Files.',NL,
  'Info Src: MSDN\Specifications\Win32 Binary Resource Formats',NL)

data
0x20 array of TResourceItem:[@:Size=FileSize-0x20] Tbl



Other specifications.


FlexT home page, Author`s home page.