### Binary Resource Files (OS/2)

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;
>           UCHAR  fResID;
>           USHORT resid;
>           USHORT fsOptions;
>           ULONG  cb;
>           BYTE   bytes[1];
>     };

The fields in each entry have the following meanings:

fRestype | Specifies whether the resource-type identifier is a string or an integer. For OS/2, the resource type is always an integer and this field is set to 0xFF.
usResType | Specifies the resource-type identifier. This value is an integer in the range -32768 through 32767, an unsigned integer in the range of 1 through 65535, or a character string. The following resource types are predefined:
Accelerator table Bitmap Character table Dialog template Display information Dialog include-file name Long-form function-key area | Short-form function-key area Font Font directory Help subtable Help table Key table Menu template | Error-message table Mouse-pointer shape Binary data String table Virtual key table String ID table
fResID | Specifies whether the resource identifier is a string or an integer. For OS/2, this field is set to 0xFF to indicate that the resource identifier is an integer.
resid | Specifies the resource identifier. This value is an unsigned integer in the range 1 through 65535.
resname | Specifies a string resource identifier as a sequence of characters ending with 0x00 value.
fsOptions | Specifies the load and memory options. This value can be a combination of the following: MOVEABLE resource. If not given, the resource is FIXED. PRELOAD resource. If not given, the resource is LOADONCALL DISCARDABLE resource.
cb | Specifies the size of the resource (in bytes).
bytes | Contains the resource.

Note: There is a size limitation of 65,280 bytes for a binary resource file.

Resource Compiler - An Overview
Resource Compiler - Syntax
Resource Script Files
Resource Compiler - An Overview
Resource Compiler - Syntax