Using Win32 functions in Visual FoxPro Image Gallery
Dynamic-Link Library
..msdn
FreeLibrary
GetModuleFileName
GetModuleHandle
GetProcAddress
LoadLibrary
LoadLibraryEx
Code examples:
Displaying dimmed window behind VFP top-level form
Drawing icons associated with the VFP main window
Finding the path to the VFP executable running
GDI+: Storing DLL icon resources in image files
How to view icons stored in executable files (Icon Viewer)
Loading a string resource from an executable file
Retrieving a handle to DLL and address of an exported function in it
Retrieving information about the main VFP window
Retrieving Window Class information for the VFP window
GetModuleHandle
    Add comment     W32 Constants      Translate this page
Retrieves a module handle for the specified module if the file has been mapped into the address space of the calling process.
Code examples:
Displaying dimmed window behind VFP top-level form
Drawing icons associated with the VFP main window
How to view icons stored in executable files (Icon Viewer)
Retrieving Window Class information for the VFP window
Retrieving information about the main VFP window
Loading a string resource from an executable file
Finding the path to the VFP executable running
GDI+: Storing DLL icon resources in image files
Retrieving a handle to DLL and address of an exported function in it
Declaration:
 
HMODULE GetModuleHandle(
  LPCTSTR lpModuleName   // module name
);
 
FoxPro declaration:
 
DECLARE INTEGER GetModuleHandle IN kernel32;
    STRING lpModuleName
 
Parameters:
lpModuleName
[in] Pointer to a null-terminated string that contains the name of the module (either a .dll or .exe file).
Return value:
My comment:
If this parameter is NULL, the GetModuleHandle returns a handle to the file used to create the calling process. This is a direct way to get a handle to the running VFP application.

Equivalent result can be achieved through the GetWindowLong call.
Word Index links for the GetModuleHandle :
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: 2002-01-13 18:30:53
Visited in last 7 days: 216
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)
2.78 hrs.Example: 'Retrieving information about the specified icon'
 Example: 'Exporting DLL icon resources as .ICO files'
5.61 hrs.Function: 'FrameRgn'
 Example: 'Starting a dialog box for connecting to network resources and passing input parameters'
8.87 hrs.Function: 'GdipRotateWorldTransform'
8.88 hrs.Example: 'Retrieving configuration information for the specified server (Win2000/XP)'
 Example: 'How to retrieve the number of print jobs queued for the printer'
9.34 hrs.Example: 'Moving shortcut to a specified position on the Windows Desktop'
9.35 hrs.Function: 'WSAEventSelect'
11.85 hrs.Example: 'Winsock: changing the byte ordering'
Google
Advertise here!