Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Accessing examples contained in this reference from a VFP application
Establishing connection using the SQLDriverConnect
Exporting DLL icon resources as .ICO files
GDI+: rotating images using matrix transformations
How to block the PrintScreen key
How to delete all print jobs for a printer
How to extract frames from AVI files
Reading security permissions for NTFS files and folders
Running a regular FoxPro form while main VFP window is minimized
Disabling drawing in the VFP form
Disconnecting USB Mass Storage Device programmatically
Encapsulating access to the Windows Services in a class
How to generate UUID values
How to suspend or hibernate your system
Obtaining MAC address through Address Resolution Protocol (ARP) request
Retrieving statistics for the TCP protocol running on the local computer
Retrieving the names of all sections in an initialization file
Setting the date and time that a file was created
Using IsChild() for testing ThisForm.ShowWindow property
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Configuring DEVMODE structure for a printer
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
How to view icons stored in executable files (Icon Viewer)
Finding the path to the VFP executable running

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 INTEGER GetModuleHandle IN kernel32;
    INTEGER lpModuleName
 
DECLARE INTEGER GetModuleFileName IN kernel32;
    INTEGER  hModule,;
    STRING @ lpFilename,;
    INTEGER  nSize
 
hModule = GetModuleHandle(0)
lpFilename = SPACE(250)
 
lnLen = GetModuleFileName (hModule, @lpFilename, Len(lpFilename))
? Left (lpFilename, lnLen)
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
335 bytes  
Created: 2001-08-03 12:00:00  
Modified: 2011-02-16 07:03:31  
Visits in 7 days: 70  
Listed functions:
GetModuleFileName
GetModuleHandle
Printer friendly API declarations
My comment:
Depending on OS, VFP version running, and differently for run-time and command window mode you may get various results:

c:\vfp\vfp.exe
c:\winnt\system32\vfp300.esl
c:\Program Files\Microsoft Visual Studio\VFP98\VFP6.Exe
...

* * *
? _vfp.servername



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.20.7.65)
3.8 hrs.
 Function: 'CreateEllipticRgn'
 Example: 'Browsing Windows Known Folders (Special Folders)'
5.42 hrs.Function: 'mixerOpen'
7.44 hrs.Example: 'CryptoAPI: retrieving list of providers'
 Function: 'GdipDisposeImage'
Function group: 'GDI+ Image'
 Function: 'SQLInstallerError'
Function group: 'ODBC API'
9.57 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
 Function: 'SHCreateDirectory'
Function group: 'Shell Functions'
 Example: 'How to make a VFP form fading out when released (GDI version)'
Google
Advertise here!