Resource (Windows)

In this article, we will explore the topic of Resource (Windows) from different perspectives. We will delve into its history, analyze its impact on today's society and discuss possible future implications. Resource (Windows) has captured the interest of academics, experts and enthusiasts alike, generating passionate debates and generating a wide spectrum of opinions. Throughout these pages, we will immerse ourselves in an exhaustive analysis that seeks to shed light on the most relevant aspects of Resource (Windows), with the aim of providing the reader with a complete and enriching vision of this fascinating topic.

In Microsoft Windows, a resource is an identifiable, read-only chunk of data embedded in an executable file -- specifically a PE file.

Files that contain resources include: EXE, DLL, CPL, SCR, SYS and MUI files.

The Windows API provides a computer program access to resources.

Types

Each resource has a type and a name, both being either numeric identifiers or strings.

Windows has a set of predefined resource types:

The programmer can also define custom data types.

Usage

The icon that Windows displays for a executable program file is the first icon resource in the file. If the file has no icon resources, a standard icon is displayed.

File Explorer displays aspects of file's version resource in the Version tab of a file's properties.

To support internationalization and localization a resource is associated with a natural language. An application can be internationalized by associating the same identifier to resources that have the same content but localized for different languages. Via Multilingual User Interface, Windows can be setup to use the resource for a selected language.

Editors are available that can modify resources embedded in EXE or DLL files. These are typically used to translate all strings of an application to another language, or to modify its icons and bitmaps accordingly.

References

  1. ^ "About Resource Files". Microsoft. Retrieved 24 Feb 2014.
  2. ^ "Resource Types". Microsoft. Retrieved 24 Feb 2014.
  3. ^ "Windows Resource Files". Microsoft. Retrieved 24 Feb 2014.

External links