 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-03 12:00:00 | | Modified: | 2002-01-13 18:30:53 | Visited in last 7 days: 216 |