JCL Help:VersionResourceAvailable@HMODULE

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests if a file has a version resource.


Pascal

 function VersionResourceAvailable(const FileName: string): Boolean; overload;
function VersionResourceAvailable(const Window: HWND): Boolean; overload;
function VersionResourceAvailable(const Module: HMODULE): Boolean; overload;


Parameters

Parameters Description
const FileName: string The fully qualified name of the file to test.


Return Value

If the specified file contains a version resource the result is True, if it does not or the file could not be found the result is False.


Description

VersionResourceAvailable tests whether or not the specified file has an accessible version resource. You can use this function to test before using the TJclFileVersionInfo class to avoid an exception during construction.


See Also

TJclFileVersionInfo


About

Unit

JclFileUtils


Donator

Marcel van Brakel


Platforms

Windows


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page