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
GDI+: custom Clock Control
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:
Displaying icons in the system tray (VFP9)
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
GDI+: custom Clock Control
How to display the Properties dialog box for a file (ShellExecuteEx)
How to view icons stored in executable files (Icon Viewer)
Creating a unique filename based on existing filename
Retrieving information about the specified icon
Retrieving file information for the VFP executable running
Using GetBinaryType (WinNT only) to determine the type of an executable file
Finding the path to the VFP executable running
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: 86
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.167.202.184)
5 sec.Function: 'JetBeginSession'
10 sec.Function: 'SQLCreateDataSource'
16 sec.Function: 'NetMessageNameAdd'
22 sec.Function: 'RpcStringFree'
28 sec.Function: 'send'
36 sec.Function: 'AVIFileExit'
43 sec.Function: 'GdipCreateFromHWND'
49 sec.Function: 'CM_Locate_DevNode_Ex'
56 sec.Function: 'SQLGetFunctions'
1.05 min.Function: 'SCardDisconnect'
Google
Advertise here!