 |
GetModuleFileNameEx ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetModuleFileNameEx function retrieves the fully qualified path for the specified module. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD GetModuleFileNameEx(
HANDLE hProcess, // handle to process
HMODULE hModule, // handle to module
LPTSTR lpFilename, // path buffer
DWORD nSize // maximum characters to retrieve
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetModuleFileNameEx IN psapi;
INTEGER hProcess,;
INTEGER hModule,;
STRING ModuleName,;
INTEGER nSize
|
 |
 |
 |
| Parameters: |
 |
hProcess
[in] Handle to the process that contains the module.
hModule
[in] Handle to the module.
lpFilename
[out] Pointer to the buffer that receives the fully qualified path to the module.
nSize
[in] Specifies the maximum number of characters to copy to the lpFilename buffer. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. |
 |
 |
| My comment: |
 |
Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Unsupported. |
 |
 |
| Word Index links for the GetModuleFileNameEx : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-10-09 22:00:09 | | Modified: | 2001-11-26 16:03:44 | Visited in last 7 days: 12 |