The resource-definition statements supported on 16-bit Windows include a load-mem option that specifies the loading and memory characteristics of the resource. The resource statements supported on 32-bit Windows do not use any of these attributes. However, the attributes are permitted in resource scripts for backward compatibility. Win32 resources are loaded when the corresponding module is loaded, and are freed when the module is unloaded. These attributes are ignored.
These attributes are divided into two groups: load attributes and memory attributes.
The load attributes specify when the resource is to be loaded. The following table shows the parameters to use when creating load attributes.
Attribute | Description |
PRELOAD | Ignored. In 16-bit Windows, the resource is loaded with the executable file. |
LOADONCALL | Ignored. In 16-bit Windows, the resource is loaded when called. |
The memory attributes specify whether the resource is fixed or movable, whether it can be discarded, and whether it is pure. The following table shows the supported memory parameters.
Attribute | Description |
FIXED | Ignored. In 16-bit Windows, the resource remains at a fixed memory location. |
MOVEABLE | Ignored. In 16-bit Windows, the resource can be moved if necessary to compact memory. |
DISCARDABLE | Ignored. In 16-bit Windows, the resource can be discarded if no longer needed. |
PURE | Ignored. Accepted for compatibility with existing resource scripts. |
IMPURE | Ignored. Accepted for compatibility with existing resource scripts. |