Using Win32 functions in Visual FoxPro Image Gallery
Dynamic-Link Library
..msdn
FreeLibrary
GetModuleFileName
GetModuleHandle
GetProcAddress
LoadLibrary
LoadLibraryEx
Code examples:
Creating a unique filename based on existing filename
Displaying icons in the system tray (VFP9)
Finding the path to the VFP executable running
How to display the Properties dialog box for a file (ShellExecuteEx)
How to view icons stored in executable files (Icon Viewer)
Retrieving file information for the VFP executable running
Retrieving information about the specified icon
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Using GetBinaryType (WinNT only) to determine the type of an executable file
GetModuleFileName
    Add comment     W32 Constants      Translate this page
Retrieves the full path and file name for the file containing the specified module.
Code examples:
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Displaying icons in the system tray (VFP9)
Using GetBinaryType (WinNT only) to determine the type of an executable file
How to display the Properties dialog box for a file (ShellExecuteEx)
How to view icons stored in executable files (Icon Viewer)
Retrieving file information for the VFP executable running
Finding the path to the VFP executable running
Retrieving information about the specified icon
Creating a unique filename based on existing filename
Declaration:
 
DWORD GetModuleFileName(
  HMODULE hModule,    // handle to module
  LPTSTR lpFilename,  // file name of module
  DWORD nSize         // size of buffer
);
 
FoxPro declaration:
 
DECLARE INTEGER GetModuleFileName IN kernel32; 
    INTEGER  hModule,; 
    STRING @ lpFilename,; 
    INTEGER  nSize
 
Parameters:
hModule
[in] Handle to the module whose file name is being requested. If this parameter is NULL, GetModuleFileName returns the path for the file containing the current process.

lpFilename
[out] Pointer to a buffer that receives the path and file name of the specified module.

nSize
[in] Specifies the length, in TCHARs, of the lpFilename buffer. If the length of the path and file name exceeds this limit, the string is truncated.
Return value:
If the function succeeds, the return value is the length, in TCHARs, of the string copied to the buffer.
Word Index links for the GetModuleFileName :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-03 12:00:00
Modified: 2001-11-26 16:02:57
Visited in last 7 days: 109
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 (23.22.252.150)
5 sec.Function: 'OpenService'
Function group: 'Service'
4.17 hrs.Function: 'AVIFileGetStream'
Function group: 'Windows Multimedia'
4.18 hrs.Function: 'waveOutReset'
 Function: 'GetTextFace'
9 hrs.Function: 'GdipGetFamilyName'
 Example: 'How to enable the SE_SHUTDOWN_NAME privilege for the application'
14.75 hrs.Function: 'GetSystemRegistryQuota'
Function group: 'System Information'
 Example: 'Simple MAPI: how to pick an email recipient from Outlook Express address book'
16.49 hrs.Function: 'EnableWindow'
Function group: 'Keyboard Input'
 Function: 'LPtoDP'
Google
Advertise here!