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:
|
|||
| 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:
|
|||
| cb | Specifies the size of the resource (in bytes). | |||
| bytes | Contains the resource. |
![]()
Resource Compiler - An
Overview
Resource Compiler - Syntax
Resource Script Files
Resource Compiler - An
Overview
Resource Compiler - Syntax