 |
GetFileTitle ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the name of the specified file. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
short GetFileTitle(
LPCTSTR lpszFile, // path and file name
LPTSTR lpszTitle, // file name buffer
WORD cbBuf // length of buffer
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE SHORT GetFileTitle IN Comdlg32;
STRING lpszFile,;
STRING @ lpszTitle,;
INTEGER cbBuf
|
 |
 |
 |
| Parameters: |
 |
lpszFile
[in] Pointer to the name and location of a file.
lpszTitle
[out] Pointer to a buffer that receives the name of the file.
cbBuf
[in] Specifies the length, in TCHARs, of the buffer pointed to by the lpszTitle parameter. |
 |
 |
| Return value: |
 |
If the function succeeds, the return value is zero. If the file name is invalid, the return value is unknown.
|
 |
 |
| My comment: |
 |
| In other words this function extracts the file and extension parts from a legal Win32 path string. Although that does not mean that file should exist. |
 |
 |
| Word Index links for the GetFileTitle : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-24 12:00:00 | | Modified: | 2001-11-26 16:03:23 | Visited in last 7 days: 20 |