Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to start the screen saver and how to find whether the screen saver is active
Reading VFP settings from the Windows Registry
Returning some basic information for the specified INF file
Winsock: retrieving the standard host name and IP address for the local machine
Displaying the drive type value
Obtaining Shell32.dll version
Reading header information from AVI file
Retrieving information about the main VFP window
Using GetNearestColor
Using the MessageBox Win32 function
Disk in drive A:
Enumerating print processors and supporting data types installed on the specified server
GDI+: enumerating fonts installed on the system
Quering Audio Mixer Device
Retrieving list of all active RAS connections
Using the SystemParametersInfo function
Verifying a file using the Authenticode policy provider
Enumerating Processes -- Win9*
High-powered ALLTRIM
How to view system icons for the classes installed on the local machine
Pocket PC: base class
Reading the state of mouse buttons within DO WHILE loop
The DetectAutoProxyUrl function identifies the auto-config script location
Creating a directory on the FTP
Extracting the name and extension parts of a path string

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
 
DECLARE SHORT GetFileTitle IN Comdlg32;
    STRING   lpszFile,;
    STRING @ lpszTitle,;
    INTEGER  cbBuf
 
lpszFile = "c:\Program Files\NetLab\AddressBook.dat"
lpszTitle = SPACE(250)
 
* for this path the return is "addressbook.dat"
 
IF GetFileTitle (lpszFile, @lpszTitle, Len(lpszTitle)) = 0
    lpszTitle = LEFT (lpszTitle, AT(Chr(0),lpszTitle)-1)
    ? lpszTitle
ENDIF
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
372 bytes  
Created: 2001-08-24 12:00:00  
Modified: 2001-09-28 16:45:35  
Visits in 7 days: 68  
Listed functions:
GetFileTitle
Printer friendly API declarations
My comment:
The path string should be valid Win32 name. Although that does not mean that the file should exist.
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)
4 sec.Example: 'GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)'
2.58 hrs.Example: 'Using the GetLogicalDriveStrings'
 
Function group: 'Memory Management'
2.8 hrs.Example: 'How to get Special Folders paths'
3.92 hrs.
Function group: 'Terminal Services'
 Example: 'Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)'
Google
Advertise here!