Unit 'FileInfo' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TVersionInfo.Load

Loads version information from a file or module instance

Declaration

Source position: fileinfo.pp line 47

public procedure TVersionInfo.Load(

  const Instance: THandle

); overload;

procedure TVersionInfo.Load(

  const AFileName: string

); overload;

Arguments

Instance

  

Module instance handle to load version information from

Arguments

AFileName

  

File name to load version information from

Description

Load extracts version resources from the specified source. It can load from a file name or from a module instance handle. After successful loading, version information is available through the properties.

Errors

May raise exceptions if the file cannot be opened or contains invalid version resources.

See also

FixedInfo

  

Fixed version information structure

StringFileInfo

  

String-based version information

VarFileInfo

  

Variable version information containing language and code page data


Documentation generated on: Dec 15 2025