VS_VERSIONINFO structure (Windows)

Switch View :
ScriptFree
VS_VERSIONINFO structure

Applies to: desktop apps only

Represents the organization of data in a file-version resource. It is the root structure that contains all other file-version information structures.

Syntax

typedef struct {
  WORD             wLength;
  WORD             wValueLength;
  WORD             wType;
  WCHAR            szKey;
  WORD             Padding1;
  VS_FIXEDFILEINFO Value;
  WORD             Padding2;
  WORD             Children;
} VS_VERSIONINFO;

Members

wLength

Type: WORD

The length, in bytes, of the VS_VERSIONINFO structure. This length does not include any padding that aligns any subsequent version resource data on a 32-bit boundary.

wValueLength

Type: WORD

The length, in bytes, of the Value member. This value is zero if there is no Value member associated with the current version structure.

wType

Type: WORD

The type of data in the version resource. This member is 1 if the version resource contains text data and 0 if the version resource contains binary data.

szKey

Type: WCHAR

The Unicode string L"VS_VERSION_INFO".

Padding1

Type: WORD

Contains as many zero words as necessary to align the Value member on a 32-bit boundary.

Value

Type: VS_FIXEDFILEINFO

Arbitrary data associated with this VS_VERSIONINFO structure. The wValueLength member specifies the length of this member; if wValueLength is zero, this member does not exist.

Padding2

Type: WORD

As many zero words as necessary to align the Children member on a 32-bit boundary. These bytes are not included in wValueLength. This member is optional.

Children

Type: WORD

An array of zero or one StringFileInfo structures, and zero or one VarFileInfo structures that are children of the current VS_VERSIONINFO structure.

Remarks

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).

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

See also

Reference
StringFileInfo
VerQueryValue
VarFileInfo
VS_FIXEDFILEINFO
Conceptual
Version Information

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012