Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving the names of all sections in an initialization file
Running a regular FoxPro form while main VFP window is minimized
Setting the date and time that a file was created
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Simple Window Viewer
Using FillMemory
Winsock: reading email messages (POP3, port 110)
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
How to position the GETPRINTER() dialog
Obtaining list of tables stored in an ODBC Data Source
How to view icons stored in executable files (Icon Viewer)
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Printf-style formatted text output in VFP
Smart Card Database Query Functions
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Browsing Windows Known Folders (Special Folders)
Displaying OS Memory Status
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
Extended OS Version info
How to register custom Event Log source
How to retrieve the number of print jobs queued for the printer
Retrieving names for the registered clipboard formats
Retrieving Window Class information for the VFP window
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: 88  
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 (107.21.156.140)
48.13 min.Example: 'How to disable the Windows Clipboard (VFP9)'
48.18 min.Example: 'Enumerating Performance Counters'
48.23 min.Example: 'Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)'
1.36 hrs.Function: 'InternetAttemptConnect'
Function group: 'Internet Functions (WinInet)'
 
1.69 hrs.Example: 'How to display Windows On-Screen Keyboard'
 Function: 'SHGetSpecialFolderLocation'
Function group: 'Shell Functions'
 Example: 'Enumerating print processors and supporting data types installed on the specified server'
2.05 hrs.Example: 'Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)'
2.42 hrs.Function: 'MAPIResolveName'
Function group: 'Simple MAPI'
Google
Advertise here!