(SST) ShlWAPIFunctionInfo Version 1.0

Developer Reference
TSSTDllVerInfo.RetResourceVersionInfo Method
Retrieves the version information data from the resources of the executable file specified in property DllFileName.
Protected (i.e. the method can only be accessed from code in a descendant class or the unit it which it is implemented).
Function RetResourceVersionInfo() : POINTER; VIRTUAL;  
Return Values
If the function succeeds it returns a pointer to the buffer into which the raw, version information data was copied. If the function fails, the returned pointer is nil.
The returned pointer and data are also available in the form of property ResourceVersionInfo, and reading the property should be preferred to calling the RetResourceVersionInfo function directly.
The function determines the size of the buffer required to hold the data by reading property ResourceVersionInfoSize. If it is greater than zero, it reads property ResourceVersionInfoBuf to obtain a pointer to a buffer. Finally, if the pointer returned by ResourceVersionInfoBuf is not nil, the function calls the ANSI version of the Windows API function GetFileVersionInfo to retrieve and copy the version information into the provided buffer. In the event that the API function call returns FALSE, method SetLastErrorCode is called with a default error code of -1 (0xFFFFFFFF).
Unit (Declared and implemented in) SSTNewUnit.pas
Library SSTNewUnit.dcu/SSTNewUnit.obj
Unicode Implemented as ANSI version only.
See Also
TSSTDllVerInfo, DllFileName, ResourceVersionInfo, ResourceVersionInfoSize, ResourceVersionInfoBuf, SetLastErrorCode, LastError, Source Code.
Windows APIs: VERSIONINFO Resource, VS_VERSIONINFO Structure, GetFileVersionInfo.

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