Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
Resource Compiler
 Common Resource Attributes
Common Resource Attributes

The resource-definition statements supported on 16-bit Windows include a load-mem option that specifies the loading and memory characteristics of the resource. These attributes are permitted in resource scripts for backward compatibility, but they are ignored. Windows resources are loaded when the corresponding module is loaded, and are freed when the module is unloaded.

Load Attributes

The load attributes specify when the resource is to be loaded. The load parameter must be one of the following attributes.

AttributeDescription
PRELOADIgnored. In 16-bit Windows, the resource is loaded with the executable file.
LOADONCALLIgnored. In 16-bit Windows, the resource is loaded when called.

 

Memory Attributes

The memory attributes specify whether the resource is fixed or movable, whether it is discardable, and whether it is pure. The memory parameter can be one or more of the following attributes.

AttributeDescription
FIXEDIgnored. In 16-bit Windows, the resource remains at a fixed memory location.
MOVEABLEIgnored. In 16-bit Windows, the resource can be moved if necessary to compact memory.
DISCARDABLEIgnored. In 16-bit Windows, the resource can be discarded if no longer needed.
PUREIgnored. Accepted for compatibility with existing resource scripts.
IMPUREIgnored. Accepted for compatibility with existing resource scripts.
SHAREDIgnored. In 16-bit Windows, SHARED is ignored for regular modules. For a resource from a ROM Windows module, the memory is shared.
NONSHAREDIgnored. In 16-bit Windows, NONSHARED is ignored for regular modules. For a resource from a ROM Windows module, the memory is not shared.

 

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker