 |
GetModuleFileName Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the full path and file name for the file containing the specified module. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-03 12:00:00 | | Modified: | 2001-11-26 16:02:57 | Visited in last 7 days: 109 |