The file formats of icon and cursor resources are similar. In the. The format of each icon component closely resembles the format of the. The format of each cursor component resembles the format of the.
Although the bitmaps of the cursor masks are monochrome and do not have DIB headers or color tables, the bits are still in DIB format with respect to alignment and direction. Another significant difference between cursors and icons is that cursors have a hotspot and icons do not. The group header contains the information an application needs to select the correct icon or cursor to display.
Both the group header and the data that repeats for each icon or cursor in the group have a fixed length. This allows the application to randomly access the information. A dialog box is also one resource entry in the resource file. This field is the version resource identifier and must be 1. The fixed-info section of a VI resource contains version information such as the file version and intended operating system.
It is composed of the following statements:. The reader should note that any field listed above that is not specified in your RC file, will default to 0. In addition, if you reexamine Figure 1 you will notice that none of the information from the fixed-info section is visible via Explorer.
You should keep in mind that the information contained in the VI is really only there for informational purposes, the real information about the image is contained within the Portable Executable header PE Header of the image itself. The version-information blocks can contain multiple StringFileInfo blocks and accompanying VarFileInfo blocks as defined below.
VarFileInfo defines a Variable File information block. This block describes the language and character set used to encode the strings contained within the associated StringFileInfo block discussed in the next section. The VarFileInfo block is defined as follows:.
English using the Unicode character set. Our VarFileInfo block would be defined as seen below:. English using Unicode with the appropriate information. Let us see how it is done in the next section. StringFileInfo defines an information block that contains a number of string-name parameters that describe the contained image in human-readable format. This block describes the language and character set used to encode the strings contained within the block.
If version information is available, GetFileVersionInfoSize returns the size, in bytes, of that information. Determines where to install a file based on whether it locates another version of the file in the system.
Installs the specified file based on information returned from the VerFindFile function. VerInstallFile decompresses the file, if necessary, assigns a unique filename, and checks for errors, such as outdated files.
Retrieves a description string for the language associated with a specified binary Microsoft language identifier. Retrieves specified version information from the specified version-information resource. Depicts the organization of data in a file-version resource. This structure is not a true C-language structure because it contains variable-length members.
This structure was created solely to depict the organization of data in a version resource and does not appear in any of the header files shipped with the Windows Software Development Kit SDK. Skip to main content. This browser is no longer supported.
Download Microsoft Edge More info. Contents Exit focus mode.
0コメント