Using Win32 functions in Visual FoxPro Image Gallery
Version Information
Code examples:
How to retrieve version information for the specified file
    Add comment     W32 Constants      Translate this page
Retrieves version information for the specified file.
Code examples:
How to retrieve version information for the specified file
BOOL GetFileVersionInfo(
    LPTSTR lptstrFilename,
    DWORD dwHandle,
    DWORD dwLen,
    LPVOID lpData
FoxPro declaration:
DECLARE INTEGER GetFileVersionInfo IN version.dll;
    STRING   lptstrFilename,;
    INTEGER  dwHandle,;
    INTEGER  dwLen,;
    STRING @ lpData

[in] Pointer to a null-terminated string that specifies the name of the file of interest.

This parameter is ignored.

[in] Specifies the size, in bytes, of the buffer pointed to by the lpData parameter.

[out] Pointer to a buffer that receives the file-version information.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
Call the GetFileVersionInfoSize function first to determine the size, in bytes, of a file"s version information. The dwLen member should be equal to or greater than that value.
Word Index links for the GetFileVersionInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2005-02-25 16:11:08
Modified: 2005-02-25 16:13:36
Visited in last 7 days: 20
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
19 sec.
Function group: 'Virtual Hard Disk (Win7)'
37 sec.Function: 'PathFindOnPath'
56 sec.Function: 'AVIFileInit'
1.25 min.Function: 'SetHandleInformation'
1.55 min.Function: 'GetWindowTextLength'
1.83 min.
Function group: 'Remote Application Programming (RAPI)'
2.13 min.Function: 'NetSessionEnum'
2.43 min.Function: 'CreateSymbolicLink'
2.68 min.Function: 'GdipRotateWorldTransform'
2.95 min.Function: 'GdipCreateStringFormat'
Advertise here!