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
Loading a string resource from an executable file
How to view icons stored in executable files (Icon Viewer)
Retrieving a handle to DLL and address of an exported function in it
Retrieving information about the main VFP window
GDI+: Storing DLL icon resources in image files
Retrieving Window Class information for the VFP window
Finding the path to the VFP executable running
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: 149
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.38), 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.136.56)
12 sec.Function: 'SwitchDesktop'
23 sec.Function: 'GdipBitmapGetPixel'
35 sec.Function: 'NetGetDCName'
44 sec.Example: 'Winsock: sending email messages (SMTP, port 25)'
58 sec.Function: 'GetShortPathName'
1.17 min.Function: 'GdipCreatePathGradientI'
1.37 min.Function: 'FindClose'
Function group: 'File Management'
1.57 min.Function: 'CopyFileTransacted'
1.78 min.Function: 'PathFileExists'
2 min.Function: 'GetMenuItemCount'
Google
Advertise here!