Binary Resource Files

The binary resource file created by the Resource Compiler consists of one or more resource entries, each in the following form:

  struct {
      UCHAR  fResType;
      USHORT usResType;
      union {
          struct {
              UCHAR  fResID;
              USHORT resid;
          };
          UCHAR resname[];
      };
      USHORT fsOptions;
      ULONG  cb;
      BYTE   bytes[1];
  };

The fields in each entry have the following meanings: