 |
GetFullPathName ..msdn Add comment W32 Constants Translate this page |
 |
 |
Retrieves the full path and file name of a specified file.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD GetFullPathName(
LPCTSTR lpFileName, // file name
DWORD nBufferLength, // size of path buffer
LPTSTR lpBuffer, // path buffer
LPTSTR *lpFilePart // address of file name in path
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetFullPathName IN kernel32;
STRING lpFileName,;
INTEGER nBufferLength,;
STRING @ lpBuffer,;
INTEGER @ lpFilePart
|
 |
 |
 |
| Parameters: |
 |
lpFileName
[in] Pointer to a null-terminated string that specifies a valid file name. This string can use either short (the 8.3 form) or long file names.
nBufferLength
[in] Specifies the size, in TCHARs, of the buffer for the drive and path.
lpBuffer
[out] Pointer to a buffer that receives the null-terminated string for the name of the drive and path.
lpFilePart
[out] Pointer to a buffer that receives the address (in lpBuffer) of the final file name component in the path.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the length, in TCHARs, of the string copied to lpBuffer, not including the terminating null character. |
 |
 |
| Usage: |
 |
nBufsize=260
cBuffer=REPLICATE(CHR(0), m.nBufsize)
= GetFullPathName(_vfp.ServerName,;
nBufsize, @cBuffer, 0)
? STRTRAN(m.cBuffer, CHR(0), "")
|
 |
 |
| My comment: |
 |
| See also: GetLongPathName, GetShortPathName, GetModuleFileName, GetTempFileName, PathFindFileName, FindExecutable |
 |
 |
| Word Index links for the GetFullPathName : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-14 12:00:00 | | Modified: | 2010-05-26 12:12:18 | Visited in last 7 days: 28 |