(SST) ShlWAPIFunctionInfo Version 1.0

Developer Reference
TSSTDllVerInfo.RetResourceFileType Method
Retrieves a binary value from the version information resources of an executable file that identifies the type of executable it was linked to.
Scope
Protected (i.e. the method can only be accessed from code in a descendant class or the unit it which it is implemented).
Syntax
Function RetResourceFileType() : DWORD;  
Parameters
None  
Return Values
Returns an unsigned integer that can take on one of the following values.
VFT_UNKNOWN (= 0) The type of executable was not specified or is unknown.
VFT_APP (= 1) The executable is an application.
VFT_DLL (= 2) The file is a dynamic link library (dll) that contains executable code and/or further resources.
VFT_DRV (= 3) The executable is a device driver. The "dwFileSubtype" member/field of the VS_FIXEDFILEINFO record/structure specifies the type of driver.
VFT_FONT (= 4) The file is a font. The "dwFileSubtype" member/field of the VS_FIXEDFILEINFO record/structure specifies the type of font.
VFT_VXD (= 5) The executable is a virtual device driver.
VFT_STATIC_LIB (= 7) The file is a static library.
Remarks
The "dwFileSubtype" member should be 0 (= VFT2_UNKNOWN) in all cases in which the returned value does not denote the file as (being) a device driver or font.
The returned value is not available in form of a separate property.
The function merely returns the "dwFileType" member/field of the ResourceFixedFileInfo property.
Requirements
Unit (Declared and implemented in) SSTNewUnit.pas
Library SSTNewUnit.dcu/SSTNewUnit.obj
Unicode Implemented as ANSI version only.
See Also
TSSTDllVerInfo, DllFileName, RetResourceFileSubtype, ResourceFixedFileInfo, LastError, Source Code.
 
Windows APIs: VERSIONINFO Resource, VS_VERSIONINFO Structure, VS_FIXEDFILEINFO.


Document/Contents version 1.00
Page/URI last updated on April 28, 2022
 
Copyright © Stoelzel Software Technologie (SST) 2010 - 2017
Suggestions and comments mail to:
webmaster@stoelzelsoftwaretech.com