Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

FileType property

Project: Version Information Component

Unit: PJVersionInfo

Class: TPJVersionInfo

Applies to: ~>3.0

property FileType: DWORD;


Use this read only run time property to get information about the type of file, e.g.application, DLL etc.

FileType provides information about the type of file being examined. The information is as specified in the fixed file information part of the VERSIONINFO resource statement.

The value of this property is also provided by the the dwFileType member of the VS_FIXEDFILEINFO structure that is accessed using the FixedFileInfo property.

FileType can take one of the values given in the following table. For some types of file further information is provided by the FileSubType property.

Flag Description
VFT_UNKNOWN Unknown file type, or no version information is present.
VFT_APP Application.
VFT_DLL Dynamic-link library (DLL).
VFT_DRV Device driver. Further information is provided by the FileSubType property.
VFT_FONT Font file. Further information is provided by the FileSubType property.
VFT_VXD Virtual device driver. The FileSubType property contains the virtual device identifier included in the virtual device control block.
VFT_STATIC_LIB Static-link library.

The VFT_XXX constants are defined in the Windows unit.