Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Changing file attributes
Creating a directory on the FTP
Drawing standard Windows icons
GDI+: printing image file
Reading VFP settings from the Windows Registry
Retrieving list of all active RAS connections
Testing an ODBC connection for supporting specific functionality
Using InternetGoOnline function
Yet another modal dialog: now HTML-based
Comparing dimensions of the VFP main window with _SCREEN properties
Enumerating global and local group accounts on a server (WinNT/XP/2K)
Enumerating MIDI output devices
Enumerating print processors and supporting data types installed on the specified server
Enumerating Volumes and Volume Mounting Points (NTFS)
Finding the path to the VFP executable running
GDI+: Storing DLL icon resources in image files
How to save registry key including its subkeys and values to a file
Number of clipboard formats available
Reading and setting system access privileges for the current process
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Retrieving information about the main VFP window
Retrieving list of available disk drives
Verifying a file using the Authenticode policy provider
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to retrieve version information for the specified file

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:
Version information makes it easier for applications to install files properly and enables setup programs to analyze files currently installed. The version-information resource contains the version number, intended operating system, and original file name.

The FileVersionInfo class encapsulates GetFileVersionInfo API call and provides read-only access to structures VS_VERSIONINFO and VS_FIXEDFILEINFO.

Usage:



See also:
Retrieving file information for the VFP executable running
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
5819 bytes  
Created: 2005-02-25 15:48:07  
Modified: 2009-03-27 10:03:27  
Visits in 7 days: 87  
Listed functions:
GetFileVersionInfo
GetFileVersionInfoSize
GetLastError
Printer friendly API declarations
My comment:
VFP AGETFILEVERSION() Function returns similar data.

See also Version Information article on MSDN.

The presence of OleSelfRegister in the version resource means that the file (DLL or EXE) can self-register itself. The developer decides whether to add this string to the version information.

Since all information resources are enumerated in a method of the class, there is no apparent need in using the VerQueryValue API call.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (50.16.108.167)
4 sec.Function: 'waveOutGetPosition'
Function group: 'Windows Multimedia'
1.34 hrs.Function: 'GetSystemMetrics'
Function group: 'System Information'
 Function: 'CloseClipboard'
Function group: 'Clipboard'
3.4 hrs.Example: 'Enumerating MIDI output devices'
 Example: 'Monitoring changes occurring within a directory'
5.65 hrs.Example: 'Drawing Windows frame controls using the DrawFrameControl function'
 Example: 'Retrieving long values associated with the class of the VFP window'
5.66 hrs.Example: 'Browsing Windows Known Folders (Special Folders)'
6.9 hrs.Example: 'Drawing a window caption using the DrawCaption routine'
 Example: 'Using FrameRgn for displaying system colors'
Google
Advertise here!